Allows plugins and themes to modify the placeholder image.This filter is not prefixed with jetpack_ to provide a smoother migration process from the WordPress Lazy Load plugin.
Parameters
- The
string The URL to the placeholder image.
Changelog
- Introduced in Jetpack 1.0.0
How to use this hook
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' );