Skip to content

How To Remove Private/Protected From WordPress Post Titles

If you ever wrote a post and then changed its visibility settings to private or password protected, you’ll notice that WordPress automatically adds private/protected prefix to the title of the post.

You can easily remove private/protected from WordPress post titles without messing around with some heavy codes.

Just add following code, suggest by Konstantin, to your current theme’s functions.php file:

function title_format($content) {
return '%s';
}
add_filter('private_title_format', 'title_format');
add_filter('protected_title_format', 'title_format');

Leave a Reply

Your email address will not be published. Required fields are marked *