test

Php code posted
created at 21 Mar 13:02, updated at 21 Mar 13:07

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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');
564 Bytes in 3 ms with coderay