Удаление атрибутов личный/защищенный из заголовков
Добавьте этот код в файл вашей темы functions.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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'); |