woocommerce_single_product_zoom_enabled хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

WC_Frontend_Scripts::get_script_data()
woocommerce_single_product_zoom_enabled
woocommerce/includes/class-wc-frontend-scripts.php 517
'zoom_enabled'              => apply_filters( 'woocommerce_single_product_zoom_enabled', get_theme_support( 'wc-product-gallery-zoom' ) ),

Где используется хук в WooCommerce

Использование не найдено.