wp_iframe_tag_add_loading_attr


wp_iframe_tag_add_loading_attr ( $iframe, $context )

Parameters:
  • (string) iframe The HTML `iframe` tag where the attribute should be added.
  • (string) context Additional context to pass to the filters.
Returns:
  • (string) Converted `iframe` tag with `loading` attribute added.
Defined at:

Description

Adds `loading` attribute to an `iframe` HTML tag.

Related Functions

wp_img_tag_add_loading_attr, wp_img_tag_add_decoding_attr, wp_img_tag_add_loading_optimization_attrs, wp_img_tag_add_width_and_height_attr, wp_img_tag_add_srcset_and_sizes_attr

Top Google Results

User discussions

wpseek mobile