Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created December 8, 2013 18:44
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/7862022 to your computer and use it in GitHub Desktop.
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
<?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