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.

_block_template_viewport_meta_tag()

Renders a ‘viewport’ meta tag.


Description

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


Top ↑

Source

File: wp-includes/block-template.php

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

Top ↑

Changelog

Changelog
Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes

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