wpseek.com
A WordPress-centric search engine for devs and theme authors



_customizer_mobile_viewport_meta › WordPress Function

Since5.5.0
Deprecatedn/a
_customizer_mobile_viewport_meta ( $viewport_meta )
Parameters:
  • (string) $viewport_meta The viewport meta.
    Required: Yes
Returns:
  • (string) Filtered viewport meta.
Defined at:
Codex:

Adds viewport meta for mobile in Customizer.

Hooked to the {@see 'admin_viewport_meta'} filter.


Source

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