$lazy_loader instance not available
-
Hey Florian,
I was wondering what might go on here:
As stated in the readme, I tried to check for the existence of the lazy_loader instance withif ( isset( $lazy_loader ) && $lazy_loader instanceof FlorianBrinkmann\LazyLoadResponsiveImages\Plugin ) { $image = $lazy_loader->filter_markup( wp_get_attachment_image( $image_id ); }but the lazy_loader instance is not available globally. I added this code in a template-part, so nothing special about it and the plugin is active of course.
Plugin Version: latest
WP 5.2.4
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘$lazy_loader instance not available’ is closed to new replies.