id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 40005,Add some customization ability to WP_TITLE,tazotodua,," by default, `_wp_render_title_tag` function is hooked in `wp_head, 1` (in `wp-includes\general-template.php`): {{{#!php function _wp_render_title_tag() { .... echo '' . wp_get_document_title() . '' . ""\n""; } }}} it leaves us no chance to modify, filter ... the title... (although `wp_get_document_title` has some hooks, but not full ability to modify full title thought), it explicitly echoes the title.... instead, we should have filters,like this: {{{#!php function _wp_render_title_tag() { .... $title = '' . apply_filters('render_title_tag', wp_get_document_title() ) . '' . ""\n""; $echo = apply_filters('echo_render_title_tag', true); if ($echo) { echo $title; } else { return $title; } } }}}",defect (bug),closed,normal,,Themes,,normal,worksforme,close,,