wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



max_srcset_image_width › WordPress Filter Hooks

Da4.4.0
Deprecaton/a
› apply_filters( 'max_srcset_image_width', 2048, $size_array )
Parametri: (2)
  • () max_width The maximum image width to be included in the 'srcset'. Default '2048'.
    Richiesto: Sì
  • () size_array { An array of requested width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Richiesto: Sì
Definito a:
Codex:

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





Sorgenti

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