bbPress Remove ‘Protected:’ and ‘Private:’ title prefixes

Why Use CJ Tech Support? Forums 8. WordPress | How To … bbPress Remove ‘Protected:’ and ‘Private:’ title prefixes

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1086
    Wazza
    Keymaster
    Thank you Stephen for the php code to fix this little bbpress problem.
    
    Plugin URI: https://gist.github.com/ntwb/8662354
    Description: bbPress - Custom Remove 'Protected:' and 'Private:' title prefixes
    Author: Stephen Edgar - Netweb
    
    The steps to take to make this work:
    1. Create a folder under Plugins on your wordpress site.
    2. Create a single file with Stephens PHP code.
    
    Create the folder: bbpresscustomremove
    Create the file: bbpresscustomremove.php
    open the editor and add the following content:
    
    
    <?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';
    }
    ?>
    
    Save the file.
    Open wordpress admin / plugins and activate the plugin.
    
    Jobs done.
    Again, Thanks you Stephen.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.