Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Control the length of excerpts generated with SearchWP's highlighter
// When highlighting, tell SearchWP to generate excerpts that are 75 words long.
add_filter( 'searchwp_th_num_words', function( $length ) {
return 75;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.