Skip to content

Instantly share code, notes, and snippets.

Created February 14, 2019 17:21
What would you like to do?
Customize SearchWP's highlighting minimum word length
// 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