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

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


Description


Parameters

$max_width

(int) The maximum image width to be included in the 'srcset'. Default '2048'.

$size_array

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


Top ↑

Source

File: wp-includes/media.php

View on Trac


Top ↑

Changelog

Version Description
4.4.0 Introduced.