PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.2.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.2.1
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Loader.php +5 -31 3.10.113.2.1 View file →
@@ -45,24 +45,19 @@
45 45 *
46 46 * @var array The modules which SDK will be using.
47 47 */
48 48 private static $available_modules = [
49 - 'script_loader',
50 49 'dashboard_widget',
51 50 'rollback',
52 51 'uninstall_feedback',
53 52 'licenser',
53 + 'endpoint',
54 + 'notification',
54 55 'logger',
55 56 'translate',
56 57 'review',
57 58 'recommendation',
58 - 'notification',
59 - 'promotions',
60 - 'welcome',
61 - 'compatibilities',
62 - 'about_us',
63 - 'announcements',
64 - 'featured_plugins',
59 +
65 60 ];
66 61
67 62 /**
68 63 * Initialize the sdk logic.
@@ -80,30 +75,8 @@
80 75 }
81 76 }
82 77
83 78 /**
84 - * Get cache token used in API requests.
85 - *
86 - * @return string Cache token.
87 - */
88 - public static function get_cache_token() {
89 - $cache_token = get_transient( 'themeisle_sdk_cache_token' );
90 - if ( false === $cache_token ) {
91 - $cache_token = wp_generate_password( 6, false );
92 - set_transient( $cache_token, WEEK_IN_SECONDS );
93 - }
94 -
95 - return $cache_token;
96 - }
97 -
98 - /**
99 - * Clear cache token.
100 - */
101 - public static function clear_cache_token() {
102 - delete_transient( 'themeisle_sdk_cache_token' );
103 - }
104 -
105 - /**
106 79 * Register product into SDK.
107 80 *
108 81 * @param string $base_file The product base file.
109 82 *
@@ -110,9 +83,9 @@
110 83 * @return Loader The singleton object.
111 84 */
112 85 public static function add_product( $base_file ) {
113 86
114 - if ( ! is_file( $base_file ) ) {
87 + if ( ! is_readable( $base_file ) ) {
115 88 return self::$instance;
116 89 }
117 90 $product = new Product( $base_file );
118 91
@@ -148,5 +121,6 @@
148 121 */
149 122 public static function get_version() {
150 123 return self::$version;
151 124 }
125 +
152 126 }