wp_lazy_loading_enabled


wp_lazy_loading_enabled ( $tag_name, $context )

Parameters:
  • (string) tag_name The tag name.
  • (string) context Additional context, like the current filter name or the function name from where this was called.
Returns:
  • (bool) Whether to add the attribute.
Defined at:
Change Log:
  • 5: .

Description

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

Related Functions

wp_maybe_load_embeds, wp_lazyload_comment_meta, wp_lazyload_site_meta, wp_lazyload_term_meta, wp_revisions_enabled

Top Google Results

User discussions

wpseek mobile