I will update Premium Account on this website Shareaccounts.org

wordpress disable thumbnails

Add the following code to your theme functions.php file:

// Disable automatically generated image sizes
function shapeSpace_disable_image_sizes($sizes) {

unset($sizes[‘thumbnail’]); // disable thumbnail size
unset($sizes[‘medium’]); // disable medium size
unset($sizes[‘large’]); // disable large size
unset($sizes[‘medium_large’]); // disable medium-large size
unset($sizes[‘1536×1536’]); // disable 2x medium-large size
unset($sizes[‘2048×2048’]); // disable 2x large size

return $sizes;

}
add_action(‘intermediate_image_sizes_advanced’, ‘shapeSpace_disable_image_sizes’);

// Disable scaling add_filter(‘big_image_size_threshold’, ‘__return_false’); // Disable other image sizes function shapeSpace_disable_other_image_sizes() { remove_image_size(‘post-thumbnail’); // disable images added via set_post_thumbnail_size() remove_image_size(‘another-size’); // disable any other added image sizes } add_action(‘init’, ‘sha peSpace_disable_other_image_sizes’);