Below is the code to customize private posts prefix in WordPress.
<?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'); |