-
-
Save jchristopher/4c7062247a672516fd4b to your computer and use it in GitHub Desktop.
Change the minimum number of characters SearchWP requires for indexing and searching
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_minimum_word_length() { | |
// index and search for words with at least two characters | |
return 2; | |
} | |
add_filter( 'searchwp_minimum_word_length', 'my_searchwp_minimum_word_length' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment