# cookiebot/4.7.4/src/admin_notices/Cookiebot_Notices.php

Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA &amp; Google Consent Mode, version 4.7.4. 39 lines.

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/admin_notices/Cookiebot_Notices.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.4/raw/src/admin_notices/Cookiebot_Notices.php
- Modified: 2025-01-28T12:24:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/admin_notices/Cookiebot_Notices.php#L10-L20`.

```php
<?php

namespace cybot\cookiebot\admin_notices;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
} // Exit if accessed directly

class Cookiebot_Notices {

	/**
	 * @var array
	 */
	private $notices_list = array();

	public function __construct() {
		$this->load_notices();
	}

	public function register_hooks() {
		add_action( 'init', array( $this, 'build_notices' ) );
	}

	protected function load_notices() {
		$this->notices_list = self::PLUGIN_NOTICES;
	}

	public function build_notices() {
		foreach ( $this->notices_list as $notice_class ) {
			( new $notice_class() )->register_hooks();
		}
	}

	const PLUGIN_NOTICES = array(
		Cookiebot_Recommendation_Notice::class,
		Cookiebot_Temp_Notice::class,
	);
}

```
