-
Notifications
You must be signed in to change notification settings - Fork 24
/
cookiebot.php
31 lines (26 loc) · 1.08 KB
/
cookiebot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
Plugin Name: Cookie banner plugin for WordPress – Cookiebot CMP by Usercentrics
Plugin URI: https://www.cookiebot.com/
Description: The Cookiebot CMP WordPress cookie banner and cookie policy help you comply with the major data protection laws (GDPR, ePrivacy, CCPA, LGPD, etc.) in a simple and fully automated way. Secure your website and get peace of mind.
Author: Usercentrics A/S
Version: 4.3.12
Author URI: https://www.cookiebot.com/
Text Domain: cookiebot
Domain Path: /langs
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
define( 'CYBOT_COOKIEBOT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'CYBOT_COOKIEBOT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/src/lib/helper.php';
require_once __DIR__ . '/src/lib/global-deprecations.php';
try {
\cybot\cookiebot\lib\cookiebot();
} catch ( RuntimeException $exception ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
deactivate_plugins( plugin_basename( __FILE__ ) );
wp_die( esc_html( $exception->getMessage() ) );
}