Skip to content

Instantly share code, notes, and snippets.

@bravokeyl
Last active August 29, 2015 13:59
Show Gist options
  • Save bravokeyl/10533016 to your computer and use it in GitHub Desktop.
Save bravokeyl/10533016 to your computer and use it in GitHub Desktop.
Remove "Protected" and "Private" prefixes from post tiltes
<?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