Last active
April 26, 2019 14:45
-
-
Save jchristopher/b89aff97cb14e8f41d73 to your computer and use it in GitHub Desktop.
Customize the common stopwords for a single SearchWP engine
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_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