Created
December 8, 2013 18:43
-
-
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
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 | |
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