Description
Filters the maximum image width to be included in a 'srcset' attribute. }
Occurrences
Filename | Line Number |
---|---|
wp-includes/media.php | 1401 |
Parameters
Type | Name | Description |
---|---|---|
int | $max_width | The maximum image width to be included in the 'srcset'. Default '2048'. |
int[] | $size_array | { An array of requested width and height values. |
PHP Doc
/**
* Filters the maximum image width to be included in a 'srcset' attribute.
*
* @since 4.4.0
*
* @param int $max_width The maximum image width to be included in the 'srcset'. Default '2048'.
* @param int[] $size_array {
* An array of requested width and height values.
*
* @type int $0 The width in pixels.
* @type int $1 The height in pixels.
* }
*/