Last active
February 28, 2020 15:03
-
-
Save jchristopher/6b6caa72949b8c6fac71c279c2b010d0 to your computer and use it in GitHub Desktop.
Remove all stopword exclusion from SearchWP
This file contains hidden or 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 ) { | |
// do not exclude any words from the index | |
return array(); | |
} | |
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
According to new PHP warning:
Notice: searchwp_common_words is deprecated since version 3.0! Use searchwp_stopwords instead.
New code: