_customizer_mobile_viewport_meta( string $viewport_meta ): string

Adds viewport meta for mobile in Customizer.

Description

Hooked to the ‘admin_viewport_meta’ filter.

Parameters

$viewport_metastringrequired
The viewport meta.

Return

string Filtered viewport meta.

Source

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

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

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