cookiebot
Last commit date
addons
4 years ago
assets
4 years ago
bin
5 years ago
css
6 years ago
documentation
4 years ago
js
5 years ago
langs
4 years ago
src
4 years ago
tests
4 years ago
vendor
4 years ago
widgets
4 years ago
CookiebotAPI.md
7 years ago
LICENSE.txt
8 years ago
README.md
4 years ago
composer.json
4 years ago
cookiebot-logo.png
4 years ago
cookiebot.php
4 years ago
phpunit.xml
5 years ago
readme.txt
4 years ago
cookiebot.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | Plugin Name: Cookiebot | GDPR/CCPA Compliant Cookie Consent and Control |
| 5 | Plugin URI: https://cookiebot.com/ |
| 6 | Description: Cookiebot is a cloud-driven solution that automatically controls cookies and trackers, enabling full GDPR/ePrivacy and CCPA compliance for websites. |
| 7 | Author: Cybot A/S |
| 8 | Version: 4.0.0 |
| 9 | Author URI: http://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 'vendor/autoload.php'; |
| 22 | require_once 'src/lib/helper.php'; |
| 23 | require_once '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 |