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



wp_omit_loading_attr_threshold › Filtr WordPress Hooks

Od6.3.0
Przestarzałyn/a
› apply_filters( 'wp_omit_loading_attr_threshold', 3 )
Parametry:
  • () omit_threshold The number of media elements where the `loading` attribute will not be added. Default 3.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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