OKAY! As I am likely not the only one who has run into this issue, final solution for those
a) using formidable to have images uploaded from client on form
b) using woocommerce install, with storefront theme
c) who want to ‘quash’ the three thumbs made by woocommerce entirely which are separate from the default wordpress defaults — meaning, by default for every upload, you get six more copies you don’t want or need
So, this only applies to quashing the woocommerce versions which don’t seem able to be tackled via the normal unset methods or by using the hooks
This should work but did not – note unique names of the woocommerce image thumbs
function shapeSpace_disable_other_image_sizes() {
remove_image_size(‘post-thumbnail’); // disable images added via set_post_thumbnail_size()
remove_image_size(‘woocommerce_thumbnail’); // disable any other added image sizes
remove_image_size(‘woocommerce_single’); // disable any other added image sizes
remove_image_size(‘woocommerce_gallery_thumbnail’); // disable any other added image sizes
}
add_action(‘init’, ‘shapeSpace_disable_other_image_sizes’);
However, finding another option from the WooCommerce codex on changing their default image sizes, I used the ‘zero out sizes’ trick, also used for default WP image thumbs:
THIS WORKS: (could probably put in array, but hey…)
add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
return array(
‘width’ => 0,
‘height’ => 0,
‘crop’ => 0,
);
} );
add_filter( ‘woocommerce_get_image_size_single’, function( $size ) {
return array(
‘width’ => 0,
‘height’ => 0,
‘crop’ => 0,
);
} );
add_filter( ‘woocommerce_get_image_size_thumbnail’, function( $size ) {
return array(
‘width’ => 0,
‘height’ => 0,
‘crop’ => 0,
);
} );