Created
May 12, 2021 09:26
-
-
Save wbcomdev/d2b8e0c135f5cbb1cd657b37a7ca80c4 to your computer and use it in GitHub Desktop.
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
| /** | |
| * Change Limit on Number of Variations for Dynamic Variable Product Dropdowns | |
| * | |
| * @param mixed $qty Quantity of Product | |
| * @param mixed $product Get a woocommerce product. | |
| */ | |
| function wb_wc_ajax_variation_threshold( $qty, $product ) { | |
| return 10; | |
| } | |
| add_filter( 'woocommerce_ajax_variation_threshold', 'wb_wc_ajax_variation_threshold', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment