• Good day.
    When I upload an image, woccommerce restore copies of it in different sizes. Most of them I don’t need. I disabled them with code:

    function shapeSpace_disable_image_sizes($sizes) {
    	
    	unset($sizes['thumbnail']);    // отключение миниатюр
    	unset($sizes['medium']);       // отключение среднего размера
    	unset($sizes['large']);        // отключение большого размера
    	unset($sizes['medium_large']); // отключение среднего большого размера
    	unset($sizes['1536x1536']);    // отключение 2x среднего большого размера 
    	unset($sizes['2048x2048']);    // отключение 2x большого размера
    	return $sizes;
    	
    }
    add_action('intermediate_image_sizes_advanced', 'shapeSpace_disable_image_sizes');

    But I can’t figure out how to turn off the size 100×100?
    Can you give me a name for this size or an alternative way to remove it?

    P.S. I also changed the theme first and disabled all plugins to check. Image size 100×100 creates woccommerce.

  • The topic ‘Remove regenerated images’ is closed to new replies.