Last active
February 18, 2022 14:41
-
-
Save jrick1229/abc143604ee122fd3971ec79e56783b8 to your computer and use it in GitHub Desktop.
Increase variation threshold from switching to AJAX to 500
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 | |
function wc_increase_variation_threshold() { | |
return 500; | |
} | |
add_filter( 'woocommerce_ajax_variation_threshold', 'wc_increase_variation_threshold' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In anonymous function form:
add_filter( 'woocommerce_ajax_variation_threshold', function() { return 500; } );