/* Increase Woocommerce Variation Threshold */ function wc_ajax_variation_threshold_modify( $threshold, $product ){ $threshold = '150'; return $threshold; } add_filter( 'woocommerce_ajax_variation_threshold', 'wc_ajax_variation_threshold_modify', 10, 2 );