Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove "Protected:" From Titles of Password Protected Posts and Pages. Source:
//* 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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment