woocommerce_ajax_variation_threshold filter-hook . WC 1.0
Get Available variations?
Usage
add_filter( 'woocommerce_ajax_variation_threshold', 'filter_function_name_7822', 10, 2 ); function filter_function_name_7822( $30, $product ){ // filter... return $30; }
- $30
- -
- $product
- -
Where the hook is called
woocommerce_ajax_variation_threshold
woocommerce/includes/wc-template-functions.php 1666
$get_variations = count( $product->get_children() ) <= apply_filters( 'woocommerce_ajax_variation_threshold', 30, $product );