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 / lib / global-deprecations.php

global-deprecations.php in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 4.7.4, at src/lib/global-deprecations.php

65 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use function cybot\cookiebot\lib\deprecation_error;
4
5 if ( ! function_exists( 'cookiebot_assist' ) ) {
6 /**
7 * Helper function to update your scripts
8 *
9 * @param string|string[] $type
10 *
11 * @return string
12 * @deprecated
13 */
14 function cookiebot_assist( $type = 'statistics' ) {
15 deprecation_error(
16 'Function',
17 __METHOD__,
18 '\cybot\cookiebot\lib\cookiebot_assist'
19 );
20 return \cybot\cookiebot\lib\cookiebot_assist( $type );
21 }
22 }
23
24
25 if ( ! function_exists( 'cookiebot_active' ) ) {
26 /**
27 * Helper function to check if cookiebot is active.
28 * Useful for other plugins adding support for Cookiebot.
29 *
30 * @return bool
31 * @deprecated
32 * @since 1.2
33 * @version 2.2.2
34 */
35 function cookiebot_active() {
36 deprecation_error(
37 'Function',
38 __METHOD__,
39 '\cybot\cookiebot\lib\cookiebot_active'
40 );
41 return \cybot\cookiebot\lib\cookiebot_active();
42 }
43 }
44
45
46 if ( ! function_exists( 'cookiebot' ) ) {
47 /**
48 * Returns the main instance of Cookiebot_WP to prevent the need to use globals.
49 *
50 * @return Cookiebot_WP
51 * @throws RuntimeException
52 * @deprecated
53 * @version 1.0.0
54 * @since 1.0.0
55 */
56 function cookiebot() {
57 deprecation_error(
58 'Function',
59 __METHOD__,
60 '\cybot\cookiebot\lib\cookiebot'
61 );
62 return Cookiebot_WP::instance();
63 }
64 }
65