Created
July 9, 2017 21:54
-
-
Save wpbullet/83a573b6617c09a673116572061d8f46 to your computer and use it in GitHub Desktop.
disable-ajax-threshold-woocommerce.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ 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