Saturday, 18 January 2014

How To Remove Unneeded Thumbnail Sizes

When you upload a image in wordpress there are multiple thumbnail sizes are generated which takes lot of memory of server. In order to get rid of unwanted size of thumnails add the following snippet in your functions.php file.


Remove unneeded images / thumbnail sizes

    update_option( 'thumbnail_size_h', 0 );
    update_option( 'thumbnail_size_w', 0 );
    update_option( 'medium_size_h', 0 );
    update_option( 'medium_size_w', 0 );
    update_option( 'large_size_h', 0 );
    update_option( 'large_size_w', 0 );

No comments:

Post a comment