Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Created February 10, 2017 08:26
Show Gist options
  • Save rynaldos-zz/6f1831507abaa005014691970e67b3fb to your computer and use it in GitHub Desktop.
Save rynaldos-zz/6f1831507abaa005014691970e67b3fb to your computer and use it in GitHub Desktop.
[WooCommerce] Increase variations threshold to 50
add_filter( 'woocommerce_ajax_variation_threshold', 'wc_ninja_ajax_threshold' );
function wc_ninja_ajax_threshold() {
return 50;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment