Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 10, 2014 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/8356381 to your computer and use it in GitHub Desktop.
Save jchristopher/8356381 to your computer and use it in GitHub Desktop.
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