function remove_image_zoom_support() {
remove_theme_support( 'wc-product-gallery-zoom' );
}
add_action( 'wp', 'remove_image_zoom_support', 100 );
Here is an example page:// disable the magnification zoom in product images
add_action( 'template_redirect', function() {
remove_theme_support( 'wc-product-gallery-zoom' );
}, 100 );
It's the template_redirect part. I'm using a custom theme I built using Underscores which might explain why the code I've been using didn't work. This info is SO needed across the web. So many folks can't turn it off.
Open in new window