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

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

add_filter( 'woocommerce_ajax_variation_threshold', 'wp_kama_woocommerce_ajax_variation_threshold_filter', 10, 2 );

/**
 * Function for `woocommerce_ajax_variation_threshold` filter-hook.
 * 
 * @param  $30      
 * @param  $product 
 *
 * @return 
 */
function wp_kama_woocommerce_ajax_variation_threshold_filter( $30, $product ){

	// filter...
	return $30;
}
$30
-
$product
-

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

woocommerce_variable_add_to_cart()
woocommerce_ajax_variation_threshold
woocommerce/includes/wc-template-functions.php 1754
$get_variations = count( $product->get_children() ) <= apply_filters( 'woocommerce_ajax_variation_threshold', 30, $product );

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

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