_customizer_mobile_viewport_meta

Advertisement

Summery Summery

Adds viewport meta for mobile in Customizer.

Syntax Syntax

_customizer_mobile_viewport_meta( string $viewport_meta )

Description Description

Hooked to the ‘admin_viewport_meta’ filter.

Parameters Parameters

$viewport_meta

(Required) The viewport meta.

Return Return

(string) Filtered viewport meta.

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';
}

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Advertisement

Leave a Reply