wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



max_srcset_image_width › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'max_srcset_image_width', 2048, $size_array )
Parametry: (2)
  • () max_width The maximum image width to be included in the 'srcset'. Default '2048'.
    Wymagane: Tak
  • () size_array { An array of requested width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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