Support » Plugin: Lazy Loader » $lazy_loader instance not available

  • Resolved zitrusblau


    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 with

        if ( 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

    • This topic was modified 2 months, 1 week ago by zitrusblau. Reason: typo
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.