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: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Adds `loading` attribute to an `iframe` HTML tag.