_customizer_mobile_viewport_meta( string $viewport_meta )

Adds viewport meta for mobile in Customizer.


Description Description

Hooked to the ‘admin_viewport_meta’ filter.


Top ↑

Parameters Parameters

$viewport_meta

(string) (Required) The viewport meta.


Top ↑

Return Return

(string) Filtered viewport meta.


Top ↑

Source Source

File: wp-admin/includes/misc.php

function _customizer_mobile_viewport_meta( $viewport_meta ) {
	return trim( $viewport_meta, ',' ) . ',minimum-scale=0.5,maximum-scale=1.2';
}

Top ↑

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

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