_wp_render_title_tag()

In this article

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.

Source

function _wp_render_title_tag() {
	if ( ! current_theme_supports( 'title-tag' ) ) {
		return;
	}

	echo '<title>' . wp_get_document_title() . '</title>' . "\n";
}

Changelog

VersionDescription
4.4.0Improved title output replaced wp_title().
4.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.