apply_filters ( 'lazyload_images_placeholder_image', string The )

Allows plugins and themes to modify the placeholder image.<p>This filter is not prefixed with jetpack_ to provide a smoother migration process from the WordPress Lazy Load plugin.</p>

Source file: modules/lazy-images/lazy-images.php

View in GitHub

Parameters

The

(string) The URL to the placeholder image


Changelog

Since: Jetpack 5.6.0


Notes

You can use this filter to change the image that is used as a placeholder image when using Jetpack’s Lazy Images feature.

function jetpackcom_lazyload_placeholder_image( $image ) {
    return 'http://url/to/image';
}
add_filter( 'lazyload_images_placeholder_image', 'jetpackcom_lazyload_placeholder_image' );

Have a note to contribute?

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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