Core Function
View Source on Trac ↗ wp_iframe_tag_add_loading_attr()
wp_iframe_tag_add_loading_attr( mixed $iframe, mixed $context ) Adds `loading` attribute to an `iframe` HTML tag.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $iframe string | The HTML `iframe` tag where the attribute should be added. Required |
| $context string | Additional context to pass to the filters. Required |
Return Value
(string)
Converted `iframe` tag with `loading` attribute added.
Function Information
Since Version
5.7.0
Source File
wp-includes/media.php
Advertisement