Skip to content

Instantly share code, notes, and snippets.

Last active Apr 26, 2019
What would you like to do?
Replace the default SearchWP stopwords with your own
function my_searchwp_stopwords( $terms ) {
// replace the default SearchWP default common words with 'lorem', 'ipsum', and 'dolor' ONLY
$terms = array( 'lorem', 'ipsum', 'dolor' );
return $terms;
add_filter( 'searchwp_stopwords', 'my_searchwp_stopwords' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment