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

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

add_filter( 'woocommerce_single_product_photoswipe_options', 'wp_kama_woocommerce_single_product_photoswipe_options_filter' );

/**
 * Function for `woocommerce_single_product_photoswipe_options` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_single_product_photoswipe_options_filter( $array ){

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

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

WC_Frontend_Scripts::get_script_data()
woocommerce_single_product_photoswipe_options
woocommerce/includes/class-wc-frontend-scripts.php 520-529
'photoswipe_options'        => apply_filters(
	'woocommerce_single_product_photoswipe_options',
	array(
		'shareEl'               => false,
		'closeOnScroll'         => false,
		'history'               => false,
		'hideAnimationDuration' => 0,
		'showAnimationDuration' => 0,
	)
),

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

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