Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active April 26, 2019 14: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/b89aff97cb14e8f41d73 to your computer and use it in GitHub Desktop.
Save jchristopher/b89aff97cb14e8f41d73 to your computer and use it in GitHub Desktop.
Customize the common stopwords for a single SearchWP engine
<?php
function my_searchwp_stopwords_supplemental( $stopwords ) {
// don't remove any stopwords for the 'Supplemental' engine
return array();
}
add_filter( 'searchwp_stopwords_supplemental', 'my_searchwp_stopwords_supplemental' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment