Return to Snippet

Revision: 23878
at February 16, 2010 07:11 by vigoncas


Initial Code
function remove_private_prefix($title) {
  $title = str_replace('Private:', '', $title);
  return $title;
}
add_filter('the_title','remove_private_prefix');

Initial URL


Initial Description
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)

Initial Title
Remove 'Private:' suffix from Wordpress title

Initial Tags
wordpress

Initial Language
PHP