apply_filters( 'max_srcset_image_width', int $max_width, array $size_array )

Filters the maximum image width to be included in a ‘srcset’ attribute.


Parameters

$max_width

The maximum image width to be included in the 'srcset'. Default '1600'.

$size_array

Array of width and height values in pixels (in that order).


Source

File: wp-includes/media.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.