wp_login_viewport_meta() WordPress Function

This function outputs the viewport meta tag for use on the WP login page. This is used to tell mobile browsers how to display the page.

wp_login_viewport_meta() #

Outputs the viewport meta tag for the login page.


Source

File: wp-login.php

function wp_login_viewport_meta() {
	?>
	<meta name="viewport" content="width=device-width" />
	<?php
}

Top ↑

Changelog

Changelog
VersionDescription
3.7.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.