Skip to content

Instantly share code, notes, and snippets.

@lukecav
Forked from claudiosanches/functions.php
Last active September 8, 2017 13:27
Show Gist options
  • Select an option

  • Save lukecav/62039b6baa16fefa79a3feff9d3338c7 to your computer and use it in GitHub Desktop.

Select an option

Save lukecav/62039b6baa16fefa79a3feff9d3338c7 to your computer and use it in GitHub Desktop.
WooCommerce - Increase AJAX variation threshold
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 50;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment