Created
September 30, 2012 09:33
-
-
Save bryceadams/3806335 to your computer and use it in GitHub Desktop.
Add Image Sizes to Media Insert Dialog / Thickbox
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_image_size( 'example', 500, 100, false ); | |
// Add Logo Size to Media Upload Dialog | |
add_filter( 'image_size_names_choose', 'namespace_image_size_names_choose' ); | |
function namespace_image_size_names_choose( $image_sizes ) { | |
$image_sizes['example'] = __( 'What You Want The Image Size To Be Called In The Media Uploader', 'namespace' ); | |
return $image_sizes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment