Parameters
$filtered_image string Full img tag with attributes that will replace the source img tag. $context string Additional context, like the current filter name or the function name from where this was called. $attachment_id int The image attachment ID. May be 0 in case the image is not an attachment.
Source
$filtered_image = wp_img_tag_add_srcset_and_sizes_attr( $filtered_image, $context, $attachment_id );
Changelog
| |
---|---|
| |