apply_filters( 'max_srcset_image_width', int $max_width, int[] $size_array )
Filters the maximum image width to be included in a ‘srcset’ attribute.
Parameters
- $max_width
-
(int) The maximum image width to be included in the 'srcset'. Default '2048'.
- $size_array
-
(int[]) An array of requested width and height values.
- (int) The width in pixels.
-
'1'
(int) The height in pixels.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/max_srcset_image_width