Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/c90315fb36c6b7e4a9c53cfcf131f086 to your computer and use it in GitHub Desktop.
Save plugin-republic/c90315fb36c6b7e4a9c53cfcf131f086 to your computer and use it in GitHub Desktop.
function bv_wc_ajax_variation_threshold( $qty, $product ) {
return 50;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'bv_wc_ajax_variation_threshold', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment