| 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 |
|