Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 9, 2018 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/2ae53dc5c6b877a10996785d79f42c46 to your computer and use it in GitHub Desktop.
Save jchristopher/2ae53dc5c6b877a10996785d79f42c46 to your computer and use it in GitHub Desktop.
Adjust what SearchWP considers to be 'big data'
<?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