buffer
1 year ago
script_loader_tag
1 year ago
traits
1 year ago
Account_Service.php
10 months ago
Consent_API_Helper.php
1 year ago
Cookie_Consent.php
1 year ago
Cookie_Consent_Interface.php
1 year ago
Cookiebot_Activated.php
10 months ago
Cookiebot_Admin_Links.php
1 year ago
Cookiebot_Automatic_Updates.php
1 year ago
Cookiebot_Deactivated.php
1 year ago
Cookiebot_Frame.php
1 year ago
Cookiebot_Javascript_Helper.php
10 months ago
Cookiebot_Review.php
1 year ago
Cookiebot_WP.php
10 months ago
Dependency_Container.php
1 year ago
Settings_Page_Tab.php
1 year ago
Settings_Service.php
1 year ago
Settings_Service_Interface.php
1 year ago
Supported_Languages.php
1 year ago
Supported_Regions.php
1 year ago
WP_Rocket_Helper.php
1 year ago
Widgets.php
1 year ago
global-deprecations.php
1 year ago
helper.php
10 months ago
Cookiebot_Deactivated.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace cybot\cookiebot\lib; |
| 4 | |
| 5 | use cybot\cookiebot\addons\Cookiebot_Addons; |
| 6 | use Exception; |
| 7 | |
| 8 | class Cookiebot_Deactivated { |
| 9 | |
| 10 | |
| 11 | /** |
| 12 | * @throws Exception |
| 13 | */ |
| 14 | public function run() { |
| 15 | $this->run_addons_deactivation_hooks(); |
| 16 | $this->disable_banner(); |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * @throws Exception |
| 21 | */ |
| 22 | private function run_addons_deactivation_hooks() { |
| 23 | $cookiebot_addons = Cookiebot_Addons::instance(); |
| 24 | $cookiebot_addons->cookiebot_deactivated(); |
| 25 | } |
| 26 | |
| 27 | private function disable_banner() { |
| 28 | update_option( 'cookiebot-banner-enabled', '0' ); |
| 29 | } |
| 30 | } |
| 31 |