Created
February 14, 2019 17:21
-
-
Save jchristopher/cb927316524fa3830d82a848994e32e2 to your computer and use it in GitHub Desktop.
Customize SearchWP's highlighting minimum word length
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 | |
// Only highlight terms that are 5 characters or longer. | |
function searchwp_minimum_word_length( $length ) { | |
return 5; | |
} | |
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