Prevent WordPress From Creating Multiple Image Sizes

x theme
(Last Updated On: July 10, 2014)

Today we’re sharing a method to stop wordpress from creating multiple unnecessary image sizes. If your theme supports a lot of image sizes and you’re just using some, then it is best to stop other image sizes. This will help you to stop overloading your server storage with extra images.

add_filter('intermediate_image_sizes_advanced', 'filter_image_sizes');
function filter_image_sizes( $sizes) {
unset( $sizes['thumbnail']);
unset( $sizes['medium']);
unset( $sizes['large']);

return $sizes;

About the author


Leave a Reply

Your email address will not be published. Required fields are marked *