Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



max_srcset_image_width ›

Seit4.4.0
Veraltetn/v
apply_filters( 'max_srcset_image_width', 2048, $size_array )
Parameter: (2)
  • (int) $max_width The maximum image width to be included in the 'srcset'. Default '2048'.
    Erforderlich: Ja
  • (int[]) $size_array { An array of requested width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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