• Resolved mcdeth

    (@mcdeth)


    is there any hook to disable generating thumbnails?

    Variation_swatches_image_size ( 50 × 50 )
    Variation_swatches_tooltip_size ( 100 × 100 )
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support fizanzvai

    (@fizanzvai)

    Hi,

    Thanks for reaching out to us.

    Our plugin doesn’t generate thumbnails unless you generate thumbnails using a plugin. Our plugin registers some thumbnail sizes. Generating thumbnails is not a feature of our plugin. You can add the following snippet to prevent registering the mentioned sizes:

    add_action( 'woo_variation_swatches_loaded', function( $wvs ){
    remove_action( 'init', array( $wvs, 'add_image_sizes' ) );
    }, 10, 1 );

    Hope to hear from you soon.

    Thank You

    Thread Starter mcdeth

    (@mcdeth)

    Thanks! I’ve used this code, will test your later today. It might not generate, but when using plugin to regenerate thumbnails, it does create all sizes

    if (!function_exists('wariationSwatchesDelThumbs')) {
    function wariationSwatchesDelThumbs()
    {
    // variation swatches 100x100 and 50x50 thumbnails thumbs
    remove_image_size('variation_swatches_tooltip_size');
    remove_image_size('variation_swatches_image_size');

    }
    }
    add_action('init', 'wariationSwatchesDelThumbs', 15);
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.