Posted By

vigoncas on 02/16/10


Tagged

wordpress


Versions (?)

Remove 'Private:' suffix from Wordpress title


 / Published in: PHP
 

Thanks to Jennifer Zelazny

You can see complete post in http://www.sandboxdev.com/blog/wordpress/178/remove-private-from-wordpress-titles/comment-page-2/#comment-16447

Add the following code into functions.php file (within theme directory)

  1. function remove_private_prefix($title) {
  2. $title = str_replace('Private:', '', $title);
  3. return $title;
  4. }
  5. add_filter('the_title','remove_private_prefix');

Report this snippet  

You need to login to post a comment.