Below is the code to customize 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 protected posts prefix in WordPress | |
function prefix_customize_protected_posts_prefix() { | |
return 'Family Only: %s'; | |
} | |
add_filter('protected_title_format', 'prefix_customize_protected_posts_prefix'); |