Skip to content

Instantly share code, notes, and snippets.

@ntwb
Created January 28, 2014 04:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntwb/8662354 to your computer and use it in GitHub Desktop.
Save ntwb/8662354 to your computer and use it in GitHub Desktop.
bbPress - Custom Remove 'Protected:' and 'Private:' title prefixes
<?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