cookiebot
Last commit date
assets
1 year ago
documentation
3 years ago
langs
1 year ago
src
1 year ago
tests
1 year ago
vendor
3 years ago
LICENSE.txt
4 years ago
README.md
3 years ago
composer.json
4 years ago
composer.lock
4 years ago
cookiebot.php
1 year ago
logo.svg
1 year ago
readme.txt
1 year ago
uninstall.php
1 year ago
cookiebot.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | Plugin Name: Usercentrics Cookiebot - Cookie Banner & Privacy Compliance for GDPR/CCPA/Google Consent Mode |
| 5 | Plugin URI: https://www.cookiebot.com/ |
| 6 | Description: Install your cookie banner in minutes. Automatically scan and block cookies to comply with the GDPR, CCPA, Google Consent Mode v2. Free plan option. |
| 7 | Author: Usercentrics A/S |
| 8 | Version: 4.5.5 |
| 9 | Author URI: https://www.cookiebot.com/ |
| 10 | Text Domain: cookiebot |
| 11 | Domain Path: /langs |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; // Exit if accessed directly |
| 16 | } |
| 17 | |
| 18 | define( 'CYBOT_COOKIEBOT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 19 | define( 'CYBOT_COOKIEBOT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 20 | |
| 21 | require_once __DIR__ . '/vendor/autoload.php'; |
| 22 | require_once __DIR__ . '/src/lib/helper.php'; |
| 23 | require_once __DIR__ . '/src/lib/global-deprecations.php'; |
| 24 | |
| 25 | try { |
| 26 | \cybot\cookiebot\lib\cookiebot(); |
| 27 | } catch ( RuntimeException $exception ) { |
| 28 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 29 | deactivate_plugins( plugin_basename( __FILE__ ) ); |
| 30 | wp_die( esc_html( $exception->getMessage() ) ); |
| 31 | } |
| 32 |