Created
January 28, 2014 04:38
-
-
Save ntwb/8662354 to your computer and use it in GitHub Desktop.
bbPress - Custom Remove 'Protected:' and 'Private:' title prefixes
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 | |
/* | |
Plugin Name: bbPress - Custom Remove 'Protected:' and 'Private:' title prefixes | |
Plugin URI: https://gist.github.com/ntwb/8662354 | |
Description: bbPress - Custom Remove 'Protected:' and 'Private:' title prefixes | |
Version: 0.1 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ | |
add_filter('protected_title_format', 'ntwb_remove_protected_title'); | |
function ntwb_remove_protected_title($title) { | |
return '%s'; | |
} | |
add_filter('private_title_format', 'ntwb_remove_private_title'); | |
function ntwb_remove_private_title($title) { | |
return '%s'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment