Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created April 26, 2019 15:30
Show Gist options
  • Save jchristopher/e4060d96cb1b6ba18848f5e5847573e0 to your computer and use it in GitHub Desktop.
Save jchristopher/e4060d96cb1b6ba18848f5e5847573e0 to your computer and use it in GitHub Desktop.
Customize the 'password protected' message returned by SearchWP's highlighter
<?php
// Customize the 'password protected' message returned by SearchWP's highlighter.
add_filter( 'searchwp_th_password_required_message', function( $message ) {
return __( 'There is no excerpt because this is a protected post.' );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment