# cookiebot/4.7.4/src/lib/global-deprecations.php

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

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/lib/global-deprecations.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.4/raw/src/lib/global-deprecations.php
- Modified: 2026-10-08T08:10:06+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/lib/global-deprecations.php#L10-L20`.

```php
<?php

use function cybot\cookiebot\lib\deprecation_error;

if ( ! function_exists( 'cookiebot_assist' ) ) {
	/**
	 * Helper function to update your scripts
	 *
	 * @param string|string[] $type
	 *
	 * @return string
	 * @deprecated
	 */
	function cookiebot_assist( $type = 'statistics' ) {
		deprecation_error(
			'Function',
			__METHOD__,
			'\cybot\cookiebot\lib\cookiebot_assist'
		);
		return \cybot\cookiebot\lib\cookiebot_assist( $type );
	}
}


if ( ! function_exists( 'cookiebot_active' ) ) {
	/**
	 * Helper function to check if cookiebot is active.
	 * Useful for other plugins adding support for Cookiebot.
	 *
	 * @return  bool
	 * @deprecated
	 * @since   1.2
	 * @version 2.2.2
	 */
	function cookiebot_active() {
		deprecation_error(
			'Function',
			__METHOD__,
			'\cybot\cookiebot\lib\cookiebot_active'
		);
		return \cybot\cookiebot\lib\cookiebot_active();
	}
}


if ( ! function_exists( 'cookiebot' ) ) {
	/**
	 * Returns the main instance of Cookiebot_WP to prevent the need to use globals.
	 *
	 * @return  Cookiebot_WP
	 * @throws RuntimeException
	 * @deprecated
	 * @version 1.0.0
	 * @since   1.0.0
	 */
	function cookiebot() {
		deprecation_error(
			'Function',
			__METHOD__,
			'\cybot\cookiebot\lib\cookiebot'
		);
		return Cookiebot_WP::instance();
	}
}

```
