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

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

add_filter( 'woocommerce_single_product_photoswipe_enabled', 'wp_kama_woocommerce_single_product_photoswipe_enabled_filter' );

/**
 * Function for `woocommerce_single_product_photoswipe_enabled` filter-hook.
 * 
 * @param  $theme_support 
 *
 * @return 
 */
function wp_kama_woocommerce_single_product_photoswipe_enabled_filter( $theme_support ){

	// filter...
	return $theme_support;
}
$theme_support
-

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

WC_Frontend_Scripts::get_script_data()
woocommerce_single_product_photoswipe_enabled
woocommerce/includes/class-wc-frontend-scripts.php 520
'photoswipe_enabled'        => apply_filters( 'woocommerce_single_product_photoswipe_enabled', get_theme_support( 'wc-product-gallery-lightbox' ) ),

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

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