Skip to content

Instantly share code, notes, and snippets.

@jpmarchand
Last active September 27, 2016 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmarchand/f5ec9fdf30e399de083d to your computer and use it in GitHub Desktop.
Save jpmarchand/f5ec9fdf30e399de083d to your computer and use it in GitHub Desktop.
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