wp_img_tag_add_loading_attr
wp_img_tag_add_loading_attr ( $image, $context )
Parameters:- (string) image The HTML `img` tag where the attribute should be added.
- (string) context Additional context to pass to the filters.
See:Returns:- (string) Converted `img` tag with `loading` attribute added.
Defined at: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: 6.3.0
Description
Adds `loading` attribute to an `img` HTML tag.