Created
September 23, 2013 14:00
-
-
Save nacin/6670778 to your computer and use it in GitHub Desktop.
Removes 'Private:' and 'Protected' from the start of post titles.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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