Displays title tag with content.
Source
function _wp_render_title_tag() {
if ( ! current_theme_supports( 'title-tag' ) ) {
return;
}
echo '<title>' . wp_get_document_title() . '</title>' . "\n";
}
CARVIEW |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Displays title tag with content.
function _wp_render_title_tag() {
if ( ! current_theme_supports( 'title-tag' ) ) {
return;
}
echo '<title>' . wp_get_document_title() . '</title>' . "\n";
}
Uses | Description |
---|---|
wp_get_document_title()wp-includes/general-template.php | Returns document title for the current page. |
current_theme_supports()wp-includes/theme.php | Checks a theme’s support for a given feature. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.