admin_viewport_meta WordPress Filter Hook

The admin_viewport_meta hook allows you to add/remove viewport meta tags from the Wordpress admin area. This can be useful if you want to change the way the admin area looks on mobile devices. For example, you could use this hook to remove the "viewport" meta tag from the header, which would make the admin area look like it does on a desktop computer.

apply_filters( 'admin_viewport_meta', string $viewport_meta ) #

Filters the viewport meta in the admin.


Parameters

$viewport_meta

(string)The viewport meta.


Top ↑

Source

File: wp-admin/includes/misc.php

View on Trac



Top ↑

Changelog

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