Created
February 28, 2015 17:09
-
-
Save leepettijohn/ef10f775b0eca57a2fad to your computer and use it in GitHub Desktop.
Add image size to edit pulldown
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
add_filter('image_size_names_choose', 'my_new_image_sizes'); | |
function my_new_image_sizes($sizes) { | |
$addsizes = array( | |
"my-new-size" => __( "My New Size") | |
); | |
$newsizes = array_merge($sizes, $addsizes); | |
return $newsizes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment