_customizer_mobile_viewport_meta

函数


_customizer_mobile_viewport_meta ( $viewport_meta )
参数
  • (string)
    $viewport_meta
    The viewport meta.
    Required:
返回值
  • (string) Filtered viewport meta.
定义位置
  • wp-admin/includes/misc.php
    , line 1108
引入
5.5.0
弃用

Adds viewport meta for mobile in Customizer.

Hooked to the {@see ‘admin_viewport_meta’} filter.

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