WordPress开发者和主题制作者的搜索引擎



max_srcset_image_width ›

Since4.4.0
已弃用n/a
apply_filters( 'max_srcset_image_width', 1600, $size_array )
参数: (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
定义在:
文档:

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





源码

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