Skip to content

Instantly share code, notes, and snippets.

@ajmorris
Created March 28, 2018 18:13
Show Gist options
  • Select an option

  • Save ajmorris/afbb4ca618e6e251e17136e560650531 to your computer and use it in GitHub Desktop.

Select an option

Save ajmorris/afbb4ca618e6e251e17136e560650531 to your computer and use it in GitHub Desktop.
WooCommerce - Change ajax variation threshold
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 10;
}
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