Revision: 48716
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 8, 2011 02:09 by jamiebrwr
Initial Code
function the_title_trim($title) { $title = attribute_escape($title); $findthese = array( '#Protected:#', '#Private:#' ); $replacewith = array( '', // What to replace "Protected:" with '' // What to replace "Private:" with ); $title = preg_replace($findthese, $replacewith, $title); return $title; } add_filter('the_title', 'the_title_trim');
Initial URL
http://css-tricks.com/snippets/wordpress/remove-privateprotected-from-post-titles/
Initial Description
Initial Title
Remove Private/Protected from Post Titles
Initial Tags
wordpress
Initial Language
PHP