wp_img_tag_add_auto_sizes
wp_img_tag_add_auto_sizes ( $image )
Parameters:- (string) image The image tag markup being filtered.
Returns:- (string) The filtered image tag markup.
Defined at: - Introduced in WordPress: 6.7.0
- Deprecated in WordPress: —
Description
Adds 'auto' to the sizes attribute to the image, if the image is lazy loaded and does not already include it.