Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.