W3cubDocs

/WordPress

_wp_render_title_tag()

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";
}

Changelog

Version Description
4.4.0 Improved title output replaced wp_title().
4.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_render_title_tag