_block_template_viewport_meta_tag()WP 5.8.0

Renders a 'viewport' meta tag.

This is hooked into wp_head to decouple its output from the default template canvas.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

_block_template_viewport_meta_tag();

Changelog

Since 5.8.0 Introduced.

_block_template_viewport_meta_tag() code WP 6.5.2

function _block_template_viewport_meta_tag() {
	echo '<meta name="viewport" content="width=device-width, initial-scale=1" />' . "\n";
}