add_filter('wp_img_tag_add_loading_attr', function ($value, $image, $context) { // Disable lazyload for specific image ID (e.g. 6495) if (strpos($image, 'wp-image-6495') !== false) { return false; // Prevent lazy loading } return $value; // Default behavior for other images }, 10, 3);
Skip to content