Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.