apply_filters ( 'jetpack_lazy_images_new_attributes', array An )

Allow plugins and themes to override the attributes on the image before the content is updated.<p>One potential use of this filter is for themes that set <code>height:auto</code> on the <code>img</code> 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.</p>

Source file: jetpack_vendor/automattic/jetpack-lazy-images/src/lazy-images.php

View in GitHub



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


Since: Jetpack 1.0.0


Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s