# searchpro/4.0.21/inc/thirdparty/plugin/EWWW.php

BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS &amp; JavaScript, version 4.0.21. 30 lines.

- Page: https://pluginprobe.com/plugins/searchpro/4.0.21/code/inc/thirdparty/plugin/EWWW.php
- Raw: https://pluginprobe.com/plugins/searchpro/4.0.21/raw/inc/thirdparty/plugin/EWWW.php
- Modified: 2025-07-18T08:37:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/searchpro/4.0.21/code/inc/thirdparty/plugin/EWWW.php#L10-L20`.

```php
<?php

if (!defined('ABSPATH')) exit;

use BerqWP\BerqWP;

class berqEWWWW extends berqIntegrations {
    
    function __construct() {
        add_action( 'berqwp_notices', [$this, 'add_notice'] );
    }

    function add_notice() {

        if (class_exists('EWWW_Image') && get_option( 'ewww_image_optimizer_lazy_load' ) && get_option( 'berqwp_image_lazyloading' )) {
            bwp_notice('error', 'Disable Image Lazy Loading in EWWW Settings', "<p>To ensure compatibility, please disable the \"Image Lazy Load\" feature in the EWWW settings. This helps prevent conflicts with optimization features.</p>", [
                [
                    'href'	=> esc_attr(get_admin_url( ).'options-general.php?page=ewww-image-optimizer-options'),
                    'text'	=> 'Go to EWWW Settings',
                    'classes'	=> '',
                ]
            ]);
        }

    }


}

new berqEWWWW();
```
