PluginProbe
Cookie Consent – GDPR & CCPA Cookie Banner & Consent Manager / 0.0.5
Cookie Consent – GDPR & CCPA Cookie Banner & Consent Manager v0.0.5
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.5, at cookiez.php

65 lines 1.8 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.5
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.5' );
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
42 add_action( 'plugins_loaded', [ $this, 'init' ] );
43 new \Cookiez\Classes\Plugin_Activation( __FILE__ );
44 }
45
46 /**
47 * Initialize the plugin
48 *
49 * Do your Validations here:
50 * for example checks for basic plugin requirements, if one check fail don't continue,
51 * if all check have passed include the plugin class.
52 *
53 * Fired by `plugins_loaded` action hook.
54 *
55 * @since 1.2.0
56 * @access public
57 */
58 public function init() {
59 // Once we get here, We have passed all validation checks, so we can safely include our plugin
60 require_once 'plugin.php';
61 }
62 }
63 // Instantiate Cookiez..
64 new Cookiez();
65