admin_viewport_meta

admin_viewport_meta

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('admin_viewport_meta') is found 1 times:

  • /wp-admin/includes/misc.php line 1102
    	 * @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 ) . '">';
    

See this hook used in plugins: