woocommerce_single_product_photoswipe_options filter-hookWC 1.0

Usage

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
-

Where the hook is called

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,
	)
),

Where the hook is used in WooCommerce

Usage not found.