Skip to content

Instantly share code, notes, and snippets.

@nacin
Created September 23, 2013 14:00
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 nacin/6670778 to your computer and use it in GitHub Desktop.
Save nacin/6670778 to your computer and use it in GitHub Desktop.
Removes 'Private:' and 'Protected' from the start of post titles.
<?php
function nacin_remove_private_protected_from_titles( $format ) {
return '%s';
}
add_filter( 'protected_title_format', 'nacin_remove_private_protected_from_titles' );
add_filter( 'private_title_format', 'nacin_remove_private_protected_from_titles' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment