max_srcset_image_width

max_srcset_image_width

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('max_srcset_image_width') is found 1 times:

  • /wp-includes/media.php line 1419
    	 *     @type int $0 The width in pixels.
    	 *     @type int $1 The height in pixels.
    	 * }
    	 */
    	$max_srcset_image_width = apply_filters( 'max_srcset_image_width', 2048, $size_array );
    
    	// Array to hold URL candidates.
    	$sources = array();
    
    	/**
    	 * To make sure the ID matches our image src, we will check to see if any sizes in our attachment
    

See this hook used in plugins: