PluginProbe ʕ •ᴥ•ʔ
Real Cookie Banner: GDPR & ePrivacy Cookie Consent / 3.0.1
Real Cookie Banner: GDPR & ePrivacy Cookie Consent v3.0.1
5.2.25 5.2.23 4.5.1 4.5.2 4.5.3 4.6.0 4.6.1 4.7.0 4.7.1 4.7.10 4.7.11 4.7.12 4.7.13 4.7.14 4.7.15 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.8 4.7.9 4.8.0 4.8.3 4.8.4 5.0.0 5.0.1 5.0.10 5.0.11 5.0.13 5.0.15 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.12 5.1.13 5.1.16 5.1.17 5.1.19 5.1.2 5.1.4 5.1.6 5.1.9 5.2.0 5.2.1 5.2.10 5.2.12 5.2.14 5.2.19 5.2.22 5.2.4 5.2.5 5.2.7 5.2.9 trunk 2.10.1 2.11.0 2.11.1 2.11.2 2.12.0 2.13.0 2.14.0 2.14.1 2.14.2 2.14.3 2.15.0 2.16.0 2.16.1 2.16.2 2.17.0 2.17.1 2.17.2 2.17.3 2.18.1 2.18.2 3.0.0 3.0.1 3.0.2 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.10.0 3.11.0 3.11.1 3.11.2 3.11.4 3.11.5 3.12.0 3.13.0 3.13.1 3.13.2 3.13.3 3.2.0 3.3.0 3.4.0 3.4.1 3.4.10 3.4.11 3.4.12 3.4.13 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.10 3.6.11 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.8.0 3.9.0 3.9.2 3.9.4 3.9.5 4.0.0 4.0.1 4.1.0 4.1.1 4.1.2 4.2.0 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.7 4.4.0 4.4.1 4.5.0
real-cookie-banner / uninstall.php
real-cookie-banner Last commit date
inc 3 years ago languages 3 years ago public 3 years ago vendor 3 years ago CHANGELOG.md 3 years ago LICENSE 5 years ago LICENSE_3RD_PARTY_JS.md 5 years ago LICENSE_3RD_PARTY_PHP.md 5 years ago README.txt 3 years ago index.php 3 years ago uninstall.php 5 years ago wpml-config.xml 5 years ago
uninstall.php
43 lines
1 <?php
2 /**
3 * This file is automatically requested when the uninstalls the plugin.
4 *
5 * @see https://developer.wordpress.org/plugins/the-basics/uninstall-methods/
6 */
7
8 use DevOwl\RealCookieBanner\Activator;
9
10 if (!defined('WP_UNINSTALL_PLUGIN')) {
11 exit(); // Remove if you want to do some tests locally!
12 }
13
14 /**
15 * Uninstall our plugin! For the first, it is completely OK to just remove filesystem
16 * files. Database and options will be added soon...!
17 */
18 function rcb_uninstall() {
19 // require_once '../../../wp-load.php'; // Just for testing purposes, remove me!
20
21 if (!defined('RCB_FILE')) {
22 // ported from index.php
23 define('RCB_FILE', dirname(__FILE__) . '/index.php');
24 define('RCB_PATH', dirname(RCB_FILE));
25 define('RCB_ROOT_SLUG', 'devowl-wp');
26 define('RCB_SLUG', basename(RCB_PATH));
27 define('RCB_INC', trailingslashit(path_join(RCB_PATH, 'inc')));
28 define('RCB_MIN_PHP', '7.2.0');
29 define('RCB_MIN_WP', '5.2.0');
30 define('RCB_NS', 'DevOwl\\RealCookieBanner');
31 define('RCB_DB_PREFIX', 'rcb');
32 define('RCB_OPT_PREFIX', 'rcb');
33 define('RCB_SLUG_CAMELCASE', lcfirst(str_replace('-', '', ucwords(RCB_SLUG, '-'))));
34 }
35
36 // Require autoloader so we can use functions and classes
37 require_once RCB_INC . 'base/others/start.php';
38
39 Activator::uninstall();
40 }
41
42 rcb_uninstall();
43