Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Increase the variations threshold (the default is usually 30)
- // Credit: mohsinoffline
- // User kanlailey reported this doesn't work if the WooCommerce Stripe plugin is active
- add_filter( 'woocommerce_ajax_variation_threshold', 'custom_variation_threshold', 10, 2 );
- function custom_variation_threshold( $default, $product ) {
- return 60; // set this number to your maximum number of variations
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement