| 1 |
<?php // exit if uninstall constant is not defined |
| 2 |
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
// All new and legacy config params |
| 7 |
// phpcs:ignore |
| 8 |
// phpcs:ignore |
| 9 |
$options = array( |
| 10 |
'cookiebot-cbid', |
| 11 |
'cookiebot-auth-token', |
| 12 |
'cookiebot-user-data', |
| 13 |
'cookiebot-configuration', |
| 14 |
'cookiebot-scan-id', |
| 15 |
'cookiebot-scan-status', |
| 16 |
'cookiebot-banner-enabled', |
| 17 |
'cookiebot_banner_live_dismissed', |
| 18 |
'cookiebot-uc-auto-blocking-mode', |
| 19 |
'cookiebot-uc-onboarded-via-signup', |
| 20 |
|
| 21 |
'cookiebot-ruleset-id', |
| 22 |
'cookiebot-language', |
| 23 |
'cookiebot-front-language', |
| 24 |
'cookiebot-nooutput', |
| 25 |
'cookiebot-nooutput-admin', |
| 26 |
'cookiebot-output-logged-in', |
| 27 |
'cookiebot-ignore-scripts', |
| 28 |
'cookiebot-autoupdate', |
| 29 |
'cookiebot-script-tag-uc-attribute', |
| 30 |
'cookiebot-script-tag-cd-attribute', |
| 31 |
'cookiebot-cookie-blocking-mode', |
| 32 |
'cookiebot-iab', |
| 33 |
'cookiebot-tcf-version', |
| 34 |
'cookiebot-tcf-purposes', |
| 35 |
'cookiebot-tcf-special-purposes', |
| 36 |
'cookiebot-tcf-features', |
| 37 |
'cookiebot-tcf-special-features', |
| 38 |
'cookiebot-tcf-vendors', |
| 39 |
'cookiebot-tcf-disallowed', |
| 40 |
'cookiebot-tcf-ac-vendors', |
| 41 |
'cookiebot-ccpa', |
| 42 |
'cookiebot-ccpa-domain-group-id', |
| 43 |
'cookiebot-gtm', |
| 44 |
'cookiebot-gtm-id', |
| 45 |
'cookiebot-gtm-cookies', |
| 46 |
'cookiebot-data-layer', |
| 47 |
'cookiebot-gcm', |
| 48 |
'cookiebot-gcm-first-run', |
| 49 |
'cookiebot-gcm-url-passthrough', |
| 50 |
'cookiebot-gcm-cookies', |
| 51 |
'cookiebot-multiple-config', |
| 52 |
'cookiebot-second-banner-regions', |
| 53 |
'cookiebot-second-banner-id', |
| 54 |
'cookiebot-multiple-banners', |
| 55 |
); |
| 56 |
// Delete all config params |
| 57 |
// phpcs:ignore |
| 58 |
foreach ( $options as $option ) { |
| 59 |
delete_option( $option ); |
| 60 |
} |
| 61 |
|