Tag Archives: remover protected
Como remover o private / protected do títulos de um post no WordPress
Edite o seu arquivo functions.php do seu tema function the_title_trim($title) { $title = attribute_escape($title); $findthese = array( ‘#Protected:#’, ‘#Private:#’ ); $replacewith = array( ”, // Vai substituirá o “Protected:” ” // Vai substituirá o “Private:” ); $title = preg_replace($findthese, $replacewith, $title); return $title; } add_filter(‘the_title’, ‘the_title_trim’)
