*/ class Ad_Back_External_Checker { /** * Short Description. (use period) * * Long Description. * * @since 2.7.0 */ public static function check() { $wpRocketSettings = get_option("wp_rocket_settings"); if (is_array($wpRocketSettings) && in_array($wpRocketSettings['lazyload_iframes'], array(1, true, '1'))) { $notices = get_option('adback_deferred_admin_notices', array()); $notices[] = __('There is an incompatibility between the WP Rocket plugin and AdBack. Please uncheck the box "Enable for iframes and videos" in Settings > WP Rocket > Basic > LazyLoad to continue using AdBack. This change won\'t interfere with the operation of your website.', 'adback-solution-to-adblock'); update_option('adback_deferred_admin_notices', $notices); } $wpRocketLazyLoadSettings = get_option("rocket_lazyload_options"); if (is_array($wpRocketLazyLoadSettings) && in_array($wpRocketLazyLoadSettings['iframes'], array(1, true, '1'))) { $notices = get_option('adback_deferred_admin_notices', array()); $notices[] = __('There is an incompatibility between the LazyLoad plugin and AdBack. Please uncheck the box "iframes and videos" in Settings > LazyLoad to continue using AdBack. This change won\'t interfere with the operation of your website.', 'adback-solution-to-adblock'); update_option('adback_deferred_admin_notices', $notices); } } }