In this article

filter

jetpack_lazy_images_new_attributes

Allow plugins and themes to override the attributes on the image before the content is updated.One potential use of this filter is for themes that set height:auto on the img tag. With this filter, the theme could get the width and height attributes from the $attributes array and then add a style tag that sets those values as well, which could minimize reflow as images load.

Parameters

An
array

An array containing the attributes for the image, where the key is the attribute name and the value is the attribute value.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.