Created
January 13, 2016 23:01
-
-
Save jpmarchand/1fb9a18ba3ae44f250eb to your computer and use it in GitHub Desktop.
Customize private posts prefix in WordPress. Source: http://www.wpbeginner.com/wp-tutorials/how-to-change-private-and-protected-posts-prefix-in-wordpress/
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 | |
//* Customize private posts prefix in WordPress | |
function prefix_customize_private_posts_prefix() { | |
return 'Editors Only: %s'; | |
} | |
add_filter('private_title_format', 'prefix_customize_private_posts_prefix'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment