Alert: 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. Use _wp_render_title_tag() instead.

_block_template_render_title_tag() WordPress Function

The _block_template_render_title_tag() function is used to render the title tag for a given block template. This function is called by the block template_render() function.

_block_template_render_title_tag() #

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


Description

Top ↑

See also


Top ↑

Source

File: wp-includes/block-template.php

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


Top ↑

Changelog

Changelog
VersionDescription
5.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.