Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created December 8, 2013 18:43
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/7862007 to your computer and use it in GitHub Desktop.
Save jchristopher/7862007 to your computer and use it in GitHub Desktop.
Limit supplemental search engine search queries to 7 terms, but not the default search engine search queries
<?php
function my_searchwp_max_search_terms_supplemental( $maxTerms, $engine ) {
// limit to 7 search terms for all supplemental search engines, not the default
return 7;
}
add_filter( 'searchwp_max_search_terms_supplemental', 'my_searchwp_max_search_terms_supplemental', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment