MainWP Community

Disable background image generation in WooCommerce

Disable background image generation and resizing in WooCommerce.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_resize_images', '__return_false' );
add_filter( 'woocommerce_background_image_regeneration', '__return_false' );
1 Like