_block_template_render_title_tag()WP 5.8.0

Displays title tag with content, regardless of whether theme has title-tag support.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

null. Nothing.

Usage

_block_template_render_title_tag();

Notes

Changelog

Since 5.8.0 Introduced.

Code of _block_template_render_title_tag() WP 6.0.2

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