Instantly share code, notes, and snippets.

Embed
What would you like to do?
Customize the text returned by SearchWP's Term Highlight Extension when building an excerpt for a Private post.
<?php
function my_searchwp_th_password_required_message() {
return __( 'This entry is private.' );
}
add_filter( 'searchwp_th_password_required_message', 'my_searchwp_th_password_required_message' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment