Created
December 8, 2013 18:44
-
-
Save jchristopher/7862022 to your computer and use it in GitHub Desktop.
Use a supplemental search engine name to reset the limit on number of accepted search terms per search query
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_my_search_engine( $maxTerms ) { | |
// limit to 8 search terms for My Supplemental Search Engine ONLY | |
return 8; | |
} | |
add_filter( 'searchwp_max_search_terms_my_search_engine', 'my_searchwp_max_search_terms_my_search_engine', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment