WordPress函数 - _customizer_mobile_viewport_meta()

_customizer_mobile_viewport_meta( string $viewport_meta )

Adds viewport meta for mobile in Customizer.


Description

Hooked to the ‘admin_viewport_meta’ filter.


Parameters

$viewport_meta

(string) (Required) The viewport meta.


Return

(string) Filtered viewport meta.


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


Changelog

Changelog
Version Description
5.5.0 Introduced.

发表评论

© 2021 狸玖技术站 - 基于 WordPress