Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created September 30, 2012 09:33
Show Gist options
  • Save bryceadams/3806335 to your computer and use it in GitHub Desktop.
Save bryceadams/3806335 to your computer and use it in GitHub Desktop.
Add Image Sizes to Media Insert Dialog / Thickbox
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