Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove "Protected:" From Titles of Password Protected Posts and Pages. Source: https://developer.wordpress.org/reference/hooks/protected_title_format/
<?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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.