WordPress at Your Fingertips
function is not described

wp_admin_viewport_meta() WP 5.5.0

Displays the viewport meta in the admin.

Hooks from the function

Return

null. Nothing.

Usage

wp_admin_viewport_meta();

Changelog

Since 5.5.0 Introduced.

Code of wp_admin_viewport_meta() WP 5.8.2

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 ) . '">';
}