Forked from jessepearson/increase-variation-threshold.php
Created
March 29, 2022 17:46
-
-
Save sisaacrussell/61cf24946672ec1eb7728e55939793e8 to your computer and use it in GitHub Desktop.
Increase the number of variations loaded in the WooCommerce front end for dynamic filtering of available variations in the drop down lists.
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
<?php //only copy this line if needed | |
/** | |
* Function filters the threshold for the amount of variables to load in the front end. | |
* | |
* @see https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/ | |
* | |
* @return int 100 The new threshold. | |
*/ | |
add_filter( 'woocommerce_ajax_variation_threshold', function() { return 100; } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment