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

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

add_filter( 'woocommerce_single_product_carousel_options', 'wp_kama_woocommerce_single_product_carousel_options_filter' );

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

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

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

WC_Frontend_Scripts::get_script_data()
woocommerce_single_product_carousel_options
woocommerce/includes/class-wc-frontend-scripts.php 503-516
'flexslider'                => apply_filters(
	'woocommerce_single_product_carousel_options',
	array(
		'rtl'            => is_rtl(),
		'animation'      => 'slide',
		'smoothHeight'   => true,
		'directionNav'   => false,
		'controlNav'     => 'thumbnails',
		'slideshow'      => false,
		'animationSpeed' => 500,
		'animationLoop'  => false, // Breaks photoswipe pagination if true.
		'allowOneSlide'  => false,
	)
),

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

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