A WordPress-centric search engine for devs and theme authors



wp_lazy_loading_enabled ›

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_lazy_loading_enabled', $default, $tag_name, $context )
Parameters: (3)
  • (bool) $default Default value.
    Required: Yes
  • (string) $tag_name The tag name.
    Required: Yes
  • (string) $context Additional context, like the current filter name or the function name from where this was called.
    Required: Yes
Defined at:
Codex:

Filters whether to add the `loading` attribute to the specified tag in the specified context.





Source

return (bool) apply_filters( 'wp_lazy_loading_enabled', $default, $tag_name, $context );