Created
April 26, 2019 14:41
-
-
Save jchristopher/1948356363075a9bd6c5ff0c6e76bdd1 to your computer and use it in GitHub Desktop.
Control the threshold SearchWP uses when suggesting stopwords
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 | |
// Tell SearchWP to suggest stopwords only if they appear in 50% of entries. | |
add_filter( 'searchwp_stopwords_suggestions_threshold', function( $threshold ) { | |
return 0.5; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment