PluginProbe
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.7.4
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.7.4
4.7.4 4.7.5 4.7.3 4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 All 95 releases
cookiebot / src / admin_notices / Cookiebot_Notices.php

Cookiebot_Notices.php in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 4.7.4, at src/admin_notices/Cookiebot_Notices.php

39 lines 706 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace cybot\cookiebot\admin_notices;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit;
7 } // Exit if accessed directly
8
9 class Cookiebot_Notices {
10
11 /**
12 * @var array
13 */
14 private $notices_list = array();
15
16 public function __construct() {
17 $this->load_notices();
18 }
19
20 public function register_hooks() {
21 add_action( 'init', array( $this, 'build_notices' ) );
22 }
23
24 protected function load_notices() {
25 $this->notices_list = self::PLUGIN_NOTICES;
26 }
27
28 public function build_notices() {
29 foreach ( $this->notices_list as $notice_class ) {
30 ( new $notice_class() )->register_hooks();
31 }
32 }
33
34 const PLUGIN_NOTICES = array(
35 Cookiebot_Recommendation_Notice::class,
36 Cookiebot_Temp_Notice::class,
37 );
38 }
39