Skip to content

Instantly share code, notes, and snippets.

@nacin
Created September 23, 2013 14:00
Show Gist options
  • 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