Created
April 10, 2015 14:57
-
-
Save jayarjo/46bd7d2e3007a2350639 to your computer and use it in GitHub Desktop.
wp: additional sizes for insert into post
This file contains 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
function f__image_size_names_choose( $sizes ) { | |
global $_wp_additional_image_sizes; | |
if ( empty($_wp_additional_image_sizes) ) | |
return $sizes; | |
foreach ( $_wp_additional_image_sizes as $id => $data ) { | |
if ( !isset($sizes[$id]) ) | |
$sizes[$id] = ucfirst( str_replace( '-', ' ', $id ) ); | |
} | |
return $sizes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment