Last active
October 22, 2021 10:28
-
-
Save Balakrishnan-flycart/92a1508bce0714dfb66d4303045588b9 to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 -Increase search result limit
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
add_filter('advanced_woo_discount_rules_select_search_limit', function($search_result_limit){ | |
if($search_result_limit <= 20){ | |
return 500; | |
} | |
return $search_result_limit; | |
}, 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment