| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
|
| 5 |
if ( ! class_exists( 'Dfrapi_Env' ) ) { |
| 6 |
|
| 7 |
/** |
| 8 |
* Check environment and print errors.. |
| 9 |
*/ |
| 10 |
class Dfrapi_Env { |
| 11 |
|
| 12 |
public function __construct() { |
| 13 |
} |
| 14 |
|
| 15 |
public static function api_keys_exist(): bool { |
| 16 |
_deprecated_function( __METHOD__, '1.3.0', 'dfrapi_datafeedr_api_keys_exist()' ); |
| 17 |
|
| 18 |
return dfrapi_datafeedr_api_keys_exist(); |
| 19 |
} |
| 20 |
|
| 21 |
public static function network_is_selected(): bool { |
| 22 |
_deprecated_function( __METHOD__, '1.3.0', 'dfrapi_user_has_selected_networks()' ); |
| 23 |
|
| 24 |
return dfrapi_user_has_selected_networks(); |
| 25 |
} |
| 26 |
|
| 27 |
public static function merchant_is_selected(): bool { |
| 28 |
_deprecated_function( __METHOD__, '1.3.0', 'dfrapi_user_has_selected_merchants()' ); |
| 29 |
|
| 30 |
return dfrapi_user_has_selected_merchants(); |
| 31 |
} |
| 32 |
|
| 33 |
public static function usage_over_90_percent(): bool { |
| 34 |
_deprecated_function( __METHOD__, '1.3.0', 'dfrapi_api_usage_over_90_percent()' ); |
| 35 |
|
| 36 |
return dfrapi_api_usage_over_90_percent(); |
| 37 |
} |
| 38 |
|
| 39 |
public static function missing_affiliate_ids(): bool { |
| 40 |
_deprecated_function( __METHOD__, '1.3.0', 'dfrapi_user_is_missing_affiliate_ids()' ); |
| 41 |
|
| 42 |
return dfrapi_user_is_missing_affiliate_ids(); |
| 43 |
} |
| 44 |
|
| 45 |
} // class Dfrapi_Env |
| 46 |
|
| 47 |
} // class_exists check |
| 48 |
|