Last active
April 26, 2019 14:34
-
-
Save jchristopher/7852314 to your computer and use it in GitHub Desktop.
Replace the default SearchWP stopwords with your own
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_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