Filter: cloudinary_lazy_load_bypass

apply_filters( 'cloudinary_lazy_load_bypass', $short_circuit, $tag_element ) → {bool}

Short circuit the lazy load.
Parameters:
Name Type Description
$short_circuit bool The short circuit value.
$tag_element array The tag element.
Since:
  • 3.0.9
Source:
Returns:
Type
bool
Example
<?php

// Bypass lazy load for images with ID `feature-image`.
add_filter(
   'cloudinary_lazy_load_bypass',
   function( $bypass, $tag_element ) {
       if ( 'feature-image! === $tag_element['id'] ) {
           $bypass = true;
       }
       return $bypass;
   }
);

do_action( 'cloudinary_lazy_load_bypass', $short_circuit, $tag_element )

Short circuit the lazy load.
Parameters:
Name Type Description
$short_circuit bool The short circuit value.
$tag_element array The tag element.
Since:
  • 3.0.9
Source: