Used By
Used By | Description |
---|---|
wp-includes/media.php: wp_img_tag_add_loading_attr() | Adds |
Filters the loading
attribute value. Default lazy
.
Returning false
or an empty string will not add the attribute. Returning true
will add the default value.
(string|bool) The loading
attribute value. Returning a falsey value will result in the attribute being omitted for the image. Default is lazy
.
(string) The HTML img
tag to be filtered.
(string) Additional context about how the function was called or where the img tag is.
File: wp-includes/media.php
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_img_tag_add_loading_attr