PluginProbe
UniConsent Cookie Consent CMP – Consent Manager / trunk
UniConsent Cookie Consent CMP – Consent Manager vtrunk
1.7.1 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 1.1.20 1.1.21 1.1.22 1.1.23 1.1.24 1.1.25 1.1.26 1.1.27 1.1.28 1.1.29 1.1.3 1.1.30 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 All 96 releases
uniconsent-cmp / uniconsent-cmp.php

uniconsent-cmp.php in UniConsent Cookie Consent CMP – Consent Manager trunk, at uniconsent-cmp.php

55 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: UniConsent Cookie Consent CMP
4 * Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins
5 * Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance.
6 * Version: 1.7.1
7 * Author: UniConsent
8 * Author URI: https://www.uniconsent.com/?utm_source=wp-plugins
9 * License: GPLv3
10 */
11
12 if ( ! defined( 'WPINC' ) ) {
13 die;
14 }
15
16 define( 'UNIC_CMP_VERSION', '1.7.1' );
17
18 function activate_unic_cmp() {
19 require_once plugin_dir_path( __FILE__ ) . 'includes/class-unic-activator.php';
20 UNIC_Activator::activate();
21 }
22
23 function deactivate_unic_cmp() {
24 require_once plugin_dir_path( __FILE__ ) . 'includes/class-unic-deactivator.php';
25 UNIC_Deactivator::deactivate();
26 }
27
28 register_activation_hook( __FILE__, 'activate_unic_cmp' );
29 register_deactivation_hook( __FILE__, 'deactivate_unic_cmp' );
30
31 require plugin_dir_path( __FILE__ ) . 'includes/class-unic-cmp.php';
32
33 //declare compliance with consent level API
34 $plugin_name = plugin_basename( __FILE__ );
35 add_filter( "wp_consent_api_registered_{$plugin_name}", '__return_true' );
36
37 function unic_cmp_enqueue_scripts() {
38 wp_enqueue_script(
39 'unic-cmp-script', // Handle
40 plugin_dir_url(__FILE__) . 'public/js/unic.min.js',
41 array(),
42 '1.7.1',
43 true
44 );
45 }
46 add_action('wp_enqueue_scripts', 'unic_cmp_enqueue_scripts');
47
48 function run_unic_cmp() {
49
50 $plugin = new UNIC_CMP();
51 $plugin->run();
52
53 }
54 run_unic_cmp();
55