Below is the code to customize private 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'); |