PluginProbe
Cookie Consent – GDPR & CCPA Cookie Banner & Consent Manager / 0.0.9
Cookie Consent – GDPR & CCPA Cookie Banner & Consent Manager v0.0.9
0.0.11 0.0.10 0.0.9 0.0.8 0.0.7 0.0.6 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5
cookiez / cookiez.php

cookiez.php in Cookie Consent – GDPR & CCPA Cookie Banner & Consent Manager 0.0.9, at cookiez.php

67 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Cookie Consent - GDPR & CCPA Cookie Banner & Consent Manager
4 * Description: Simplify cookie consent with a customizable banner that helps you cover global privacy laws like GDPR and CCPA. Scan your site for cookies, block scripts based on visitor preferences, and keep audit-ready logs of every choice.
5 * Plugin URI: https://elementor.com/
6 * Version: 0.0.9
7 * Author: Elementor.com
8 * Text Domain: cookiez
9 * License: GPLv3
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit; // Exit if accessed directly.
14 }
15
16 define( 'COOKIEZ_VERSION', '0.0.9' );
17 define( 'COOKIEZ_PLUGIN_BASE', plugin_basename( __FILE__ ) );
18 define( 'COOKIEZ_PATH', plugin_dir_path( __FILE__ ) );
19 define( 'COOKIEZ_URL', plugins_url( '/', __FILE__ ) );
20 define( 'COOKIEZ_ASSETS_PATH', COOKIEZ_PATH . 'assets/' );
21 define( 'COOKIEZ_ASSETS_URL', COOKIEZ_URL . 'assets/' );
22
23 if ( ! defined( 'COOKIEZ_MINIMUM_LOG_LEVEL' ) ) {
24 define( 'COOKIEZ_MINIMUM_LOG_LEVEL', 3 );
25 }
26
27 /**
28 * Cookiez Class
29 *
30 */
31 final class Cookiez {
32
33 /**
34 * Constructor
35 *
36 * @access public
37 */
38 public function __construct() {
39 require_once COOKIEZ_PATH . 'vendor/autoload.php';
40 require_once COOKIEZ_PATH . 'classes/plugin-activation.php';
41 require_once COOKIEZ_PATH . 'classes/maxmind-cron-scheduler.php';
42
43 add_action( 'plugins_loaded', [ $this, 'init' ] );
44 new \Cookiez\Classes\Plugin_Activation( __FILE__ );
45 new \Cookiez\Classes\Maxmind_Cron_Scheduler( __FILE__ );
46 }
47
48 /**
49 * Initialize the plugin
50 *
51 * Do your Validations here:
52 * for example checks for basic plugin requirements, if one check fail don't continue,
53 * if all check have passed include the plugin class.
54 *
55 * Fired by `plugins_loaded` action hook.
56 *
57 * @since 1.2.0
58 * @access public
59 */
60 public function init() {
61 // Once we get here, We have passed all validation checks, so we can safely include our plugin
62 require_once 'plugin.php';
63 }
64 }
65 // Instantiate Cookiez..
66 new Cookiez();
67