Created
March 9, 2018 13:45
-
-
Save jchristopher/2ae53dc5c6b877a10996785d79f42c46 to your computer and use it in GitHub Desktop.
Adjust what SearchWP considers to be 'big data'
This file contains 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 | |
// Tell SearchWP to take a more reserved (slower) approach when indexing | |
// Applicable for servers with limited resources | |
// Default $threshold is 10000 | |
add_filter( 'searchwp_term_count_limit', function( $threshold ) { | |
return 5000; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment