Last active
March 29, 2022 17:46
-
-
Save jessepearson/ae21721f4d75ea8d2c72c138a3aa25d7 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 hidden or 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
Thank you so much for this, this worked perfectly!!!!