Title / Description
Code function custom_wmu_image_sizes($sizes) { unset( $sizes['thumbnail']); unset( $sizes['medium']); unset( $sizes['large']); unset( $sizes['full'] ); // removes full size if needed $myimgsizes = array( "magazine-thumb" => __( "Magazine" ), "slideshow-thumb" => __( "Slideshow" ), "sidebar-thumb" => __( "Sidebar" ) ); $newimgsizes = array_merge($sizes, $myimgsizes); return $newimgsizes; } add_filter('image_size_names_choose', 'custom_wmu_image_sizes');
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code