Created
January 10, 2014 15:29
-
-
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.
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 | |
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