_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.

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.


null. Nothing.




Since 5.8.0 Introduced.

Code of _block_template_viewport_meta_tag() WP 6.0.2

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