4

Removing default image size list in Media Box

I trying to remove unused image size (Thumbnail, Medium, Large) in MediaBox

Any function can i use in functions.php ? or some trick ?

PS : I know i can use jQuery trick but any better function to use ?

4

Exactly the same code as Mridul, but different filter:

function wp_70048_remove_image_sizes($sizes) {
    unset($sizes['thumbnail']);
    unset($sizes['medium']);
    unset($sizes['large']);
    return $sizes;
}
add_filter('image_size_names_choose', 'wp_70048_remove_image_sizes');

Tested with WP 3.4.2
removed image sizes

1
function remove_default_image_sizes($sizes) {
    unset($sizes['thumbnail']);
    unset($sizes['medium']);
    unset($sizes['large']);
    return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes');
  • nope , cant do with this :( – l2aelba Oct 22 '12 at 8:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.