Created
April 26, 2019 15:30
-
-
Save jchristopher/e4060d96cb1b6ba18848f5e5847573e0 to your computer and use it in GitHub Desktop.
Customize the 'password protected' message returned by SearchWP's highlighter
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 | |
// 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