A WordPress-centric search engine for devs and theme authors



max_srcset_image_width ›

Since4.4.0
Deprecatedn/a
apply_filters( 'max_srcset_image_width', 1600, $size_array )
Parameters: (2)
  • (int) $max_width The maximum image width to be included in the 'srcset'. Default '1600'.
    Required: Yes
  • (array) $size_array Array of width and height values in pixels (in that order).
    Required: Yes
Defined at:
Codex:

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





Source

$max_srcset_image_width = apply_filters( 'max_srcset_image_width', 1600, $size_array );