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