Last active
June 15, 2016 19:25
-
-
Save saqibsarwar/33ce57b5040556e6a7a8034321cb1984 to your computer and use it in GitHub Desktop.
Display list default image sizes in WordPress with related dimensions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$image_sizes = get_intermediate_image_sizes(); | |
foreach( $image_sizes as $image_size ){ | |
$holder_width = get_option( $image_size . '_size_w' ); | |
$holder_height = get_option( $image_size . '_size_h' ); | |
echo $image_size . ":" . $holder_width . " x " . $holder_height; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment