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



max_srcset_image_width › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'max_srcset_image_width', 2048, $size_array )
参数: (2)
  • () max_width The maximum image width to be included in the 'srcset'. Default '2048'.
    Required: Yes
  • () size_array { An array of requested width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Required: Yes
定义在:
文档:

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





源码

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