woocommerce_single_product_zoom_enabled
Usage
add_filter( 'woocommerce_single_product_zoom_enabled', 'wp_kama_woocommerce_single_product_zoom_enabled_filter' ); /** * Function for `woocommerce_single_product_zoom_enabled` filter-hook. * * @param $theme_support * * @return */ function wp_kama_woocommerce_single_product_zoom_enabled_filter( $theme_support ){ // filter... return $theme_support; }
- $theme_support
- -
Where the hook is called
woocommerce_single_product_zoom_enabled
woocommerce/includes/class-wc-frontend-scripts.php 525
'zoom_enabled' => apply_filters( 'woocommerce_single_product_zoom_enabled', get_theme_support( 'wc-product-gallery-zoom' ) ),