Last active
August 29, 2015 13:59
-
-
Save bravokeyl/10533016 to your computer and use it in GitHub Desktop.
Remove "Protected" and "Private" prefixes from post tiltes
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 | |
/* Removing private and proected prefixes from post titles */ | |
/* uses two filters | |
* protected_title_format and private_title_format | |
*/ | |
function spi_remove_private_protected_from_titles( $format ) { | |
return '%s'; | |
} | |
add_filter( 'protected_title_format', 'spi_remove_private_protected_from_titles' ); | |
add_filter( 'private_title_format', 'spi_remove_private_protected_from_titles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment