wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_omit_loading_attr_threshold › WordPress过滤钩子

Since6.3.0
已弃用n/a
› apply_filters( 'wp_omit_loading_attr_threshold', 3 )
参数:
  • () omit_threshold The number of media elements where the `loading` attribute will not be added. Default 3.
    Required: Yes
定义在:
文档:

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.




源码

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