Remove "Private:" and "Protected:" From Titles
Shows private and password-protected posts with their plain title, without the prefix WordPress adds.
Opens WPIDE on
Code
$wpide_plain_title_format = function () {
return '%s';
};
add_filter( 'private_title_format', $wpide_plain_title_format );
add_filter( 'protected_title_format', $wpide_plain_title_format );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.