Skip to content

Instantly share code, notes, and snippets.

@wpbullet
Created July 9, 2017 21:54
Show Gist options
  • Save wpbullet/83a573b6617c09a673116572061d8f46 to your computer and use it in GitHub Desktop.
Save wpbullet/83a573b6617c09a673116572061d8f46 to your computer and use it in GitHub Desktop.
disable-ajax-threshold-woocommerce.php
/ Begin Show 180 variations when loading page.
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 400;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
// END Show 180 variations when loading page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment