# cookiebot/4.7.4/src/lib/Cookiebot_Deactivated.php

Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA &amp; Google Consent Mode, version 4.7.4. 30 lines.

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/lib/Cookiebot_Deactivated.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.4/raw/src/lib/Cookiebot_Deactivated.php
- Modified: 2026-01-27T12:05:36+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/cookiebot/4.7.4/code/src/lib/Cookiebot_Deactivated.php#L10-L20`.

```php
<?php

namespace cybot\cookiebot\lib;

use cybot\cookiebot\addons\Cookiebot_Addons;
use Exception;

class Cookiebot_Deactivated {


	/**
	 * @throws Exception
	 */
	public function run() {
		$this->run_addons_deactivation_hooks();
	}

	/**
	 * @throws Exception
	 */
	private function run_addons_deactivation_hooks() {
		$cookiebot_addons = Cookiebot_Addons::instance();
		$cookiebot_addons->cookiebot_deactivated();
	}

	private function disable_banner() {
		update_option( 'cookiebot-banner-enabled', '0' );
	}
}

```
