Below is the code to remove the word “Protected:” from titles of password protected posts and pages.
<?php | |
//* Remove "Protected:" from titles of password protected posts and pages | |
function customprefix_remove_protected_from_titles($title) { | |
return '%s'; | |
} | |
add_filter('protected_title_format', 'customprefix_remove_protected_from_titles'); |
Alternatively, you can download and install Remove Protected from the WordPress Plugin Repository.