WordPress at Your Fingertips
function is not described

_customizer_mobile_viewport_meta() WP 5.5.0

Adds viewport meta for mobile in Customizer.

Hooked to the admin_viewport_meta filter.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


String. Filtered viewport meta.


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


Since 5.5.0 Introduced.

Code of _customizer_mobile_viewport_meta() WP 5.8.2

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