We are working with creating protected page reports for clients with a simple password protection, using the standard WordPress Password Protected functionality. Unfortunately, it adds “protected” to the page heading. This simple code, added to functions.php, removes “protected” from protected posts and pages sitewide:
[php]/* Remove Protected from Title on Protected Pages */
add_filter(‘protected_title_format’, ‘blank’);
function blank($title) {
return ‘%s’;
}[/php]
This entry was posted on Tuesday, September 28th, 2010 at 12:28 pm and is filed under WordPress.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.