_customizer_mobile_viewport_meta()WP 5.5.0

Adds viewport meta for mobile in Customizer.

Hooked to the admin_viewport_meta filter.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

String. Filtered viewport meta.

Usage

_customizer_mobile_viewport_meta( $viewport_meta );
$viewport_meta(string) (required)
The viewport meta.

Changelog

Since 5.5.0 Introduced.

_customizer_mobile_viewport_meta() code WP 6.6.2

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