Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Customize the text returned by SearchWP's Term Highlight Extension when building an excerpt for a Private post.
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
You can’t perform that action at this time.