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:

Description

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

Related Functions

wp_maybe_load_embeds, wp_revisions_enabled, wp_media_upload_handler, wp_load_image, wp_admin_headers

Top Google Results

User discussions

wpseek mobile