PluginProbe
Datafeedr API / 1.4.0
Datafeedr API v1.4.0
1.4.2 1.0.125 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.3 1.0.30 1.0.31 1.0.32 1.0.33 All 181 releases
datafeedr-api / classes / class-dfrapi-env.php

class-dfrapi-env.php in Datafeedr API 1.4.0, at classes/class-dfrapi-env.php

48 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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