Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove Default WordPress Image Sizes
<?php
function remove_default_image_sizes($sizes) {
unset($sizes['thumbnail']);
unset($sizes['medium']);
unset($sizes['large']);
return $sizes;
}
add_filter('image_size_names_choose', 'remove_default_image_sizes');
add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes', 15);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment