wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_admin_viewport_meta › WordPress Function
Since5.5.0
Deprecatedn/a
› wp_admin_viewport_meta ( No parameters )
Defined at: |
|
Codex: |
Displays the viewport meta in the admin.
Related Functions: wp_login_viewport_meta, wp_read_video_metadata, wp_admin_bar_wp_menu, wp_admin_notice, wp_admin_bar_edit_menu
Source
function wp_admin_viewport_meta() { /** * Filters the viewport meta in the admin. * * @since 5.5.0 * * @param string $viewport_meta The viewport meta. */ $viewport_meta = apply_filters( 'admin_viewport_meta', 'width=device-width,initial-scale=1.0' ); if ( empty( $viewport_meta ) ) { return; } echo '<meta name="viewport" content="' . esc_attr( $viewport_meta ) . '">'; }