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



wp_omit_loading_attr_threshold › WordPress Filter Hooks

Da6.3.0
Deprecaton/a
› apply_filters( 'wp_omit_loading_attr_threshold', 3 )
Parametri:
  • () omit_threshold The number of media elements where the `loading` attribute will not be added. Default 3.
    Richiesto: Sì
Definito a:
Codex:

Filters the threshold for how many of the first content media elements to not lazy-load.

For these first content media elements, the `loading` attribute will be omitted. By default, this is the case for only the very first content media element.




Sorgenti

$omit_threshold = apply_filters( 'wp_omit_loading_attr_threshold', 3 );