PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 3.1.4
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v3.1.4
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 All 93 releases
← All changes | ultimate-store-kit.php +26 -28 3.0.43.1.4 View file →
@@ -1,21 +1,28 @@
1 1 <?php
2 2
3 3 /**
4 4 * Plugin Name: Ultimate Store Kit
5 - * Plugin URI: https://bdthemes.com/ultimate-store-kit/
5 + * Plugin URI: https://storekit.pro/
6 6 * Description: Build online stores in WordPress with the powerful store builder addon for Elementor. Enjoy a wide range of customizations and easily build product grids, carousels, single product/page elements, checkouts and more.
7 - * Version: 3.0.4
7 + * Version: 3.1.4
8 8 * Author: BdThemes
9 9 * Author URI: https://bdthemes.com/
10 10 * Text Domain: ultimate-store-kit
11 11 * Domain Path: /languages
12 12 * License: GPL3
13 - * Elementor requires at least: 3.28
14 - * Elementor tested up to: 4.0.9
13 + * Elementor requires at least: 4.0.0
14 + * Elementor tested up to: 4.2.4
15 15 */
16 16
17 17
18 +
19 +if (! defined('ABSPATH')) {
20 + exit; // Exit if accessed directly
21 +}
22 +
23 +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals -- BDTUSK_ / ultimate_store_kit_ / ultimate-store-kit- are this plugin's established public prefixes.
24 +
18 25 // Check if vendor directory and autoload.php exist
19 26 $ultimate_store_kit_autoload_file = __DIR__ . '/vendor/autoload.php';
20 27 if (file_exists($ultimate_store_kit_autoload_file)) {
21 28 // Load autoloader (vendor/autoload.php).
@@ -22,9 +29,9 @@
22 29 require_once $ultimate_store_kit_autoload_file;
23 30 }
24 31
25 32 // Some pre define value for easy use
26 -define('BDTUSK_VER', '3.0.4');
33 +define('BDTUSK_VER', '3.1.4');
27 34 define('BDTUSK__FILE__', __FILE__);
28 35 define('BDTUSK_PNAME', basename(dirname(BDTUSK__FILE__)));
29 36 define('BDTUSK_PBNAME', plugin_basename(BDTUSK__FILE__));
30 37 define('BDTUSK_PATH', plugin_dir_path(BDTUSK__FILE__));
@@ -41,25 +48,12 @@
41 48 define('BDTUSK_BUILD_URL', BDTUSK_URL . 'build/');
42 49
43 50 define('BDTUSK_TITLE', 'Ultimate Store Kit');
44 51
45 -/**
46 - * Loads translations
47 - *
48 - * @return void
49 - */
52 +if (! function_exists('ultimate_store_kit_is_pro_installed')) {
50 53
51 -if (! function_exists('bdthemes_ultimate_store_kit_load_textdomain')) {
52 - function bdthemes_ultimate_store_kit_load_textdomain() {
53 - load_plugin_textdomain('ultimate-store-kit', false, basename(dirname(__FILE__)) . '/languages');
54 - }
55 - add_action('init', 'bdthemes_ultimate_store_kit_load_textdomain');
56 -}
54 + function ultimate_store_kit_is_pro_installed() {
57 55
58 -if (! function_exists('_is_usk_pro_installed')) {
59 -
60 - function _is_usk_pro_installed() {
61 -
62 56 if (! function_exists('get_plugins')) {
63 57 require_once ABSPATH . 'wp-admin/includes/plugin.php';
64 58 }
65 59
@@ -69,11 +63,11 @@
69 63 return isset($installed_plugins[$file_path]);
70 64 }
71 65 }
72 66
73 -if (! function_exists('_is_usk_pro_activated')) {
67 +if (! function_exists('ultimate_store_kit_is_pro_activated')) {
74 68
75 - function _is_usk_pro_activated() {
69 + function ultimate_store_kit_is_pro_activated() {
76 70
77 71 if (! function_exists('get_plugins')) {
78 72 require_once ABSPATH . 'wp-admin/includes/plugin.php';
79 73 }
@@ -91,13 +85,13 @@
91 85
92 86 // Helper function here
93 87 require(dirname(__FILE__) . '/includes/helper.php');
94 88
95 -if (! _is_usk_pro_activated()) {
89 +if (! ultimate_store_kit_is_pro_activated()) {
96 90 require_once BDTUSK_INC_PATH . 'class-pro-widget-map.php';
97 91 }
98 92
99 -if (function_exists('usk_license_validation') && true !== usk_license_validation()) {
93 +if (function_exists('ultimate_store_kit_license_validation') && true !== ultimate_store_kit_license_validation()) {
100 94 require_once BDTUSK_INC_PATH . 'class-pro-widget-map.php';
101 95 }
102 96
103 97 require(dirname(__FILE__) . '/includes/utils.php');
@@ -138,9 +132,9 @@
138 132 }
139 133
140 134 $plugin = 'elementor/elementor.php';
141 135
142 - if (_is_dep_plugin_installed($plugin)) {
136 + if (ultimate_store_kit_is_dependency_plugin_installed($plugin)) {
143 137 if (! current_user_can('activate_plugins')) {
144 138 return;
145 139 }
146 140 $activation_url = wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin . '&amp;plugin_status=all&amp;paged=1&amp;s', 'activate-plugin_' . $plugin);
@@ -168,9 +162,9 @@
168 162 }
169 163
170 164 $plugin = 'woocommerce/woocommerce.php';
171 165
172 - if (_is_dep_plugin_installed($plugin)) {
166 + if (ultimate_store_kit_is_dependency_plugin_installed($plugin)) {
173 167 if (! current_user_can('activate_plugins')) {
174 168 return;
175 169 }
176 170 $activation_url = wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin . '&amp;plugin_status=all&amp;paged=1&amp;s', 'activate-plugin_' . $plugin);
@@ -187,14 +181,18 @@
187 181
188 182 printf('<div class="error">%1$s</div>', wp_kses_post($admin_message));
189 183 }
190 184
191 -if (! function_exists('_is_dep_plugin_installed')) {
185 +if (! function_exists('ultimate_store_kit_is_dependency_plugin_installed')) {
192 186
193 187 /**
194 188 * @plug_slug string plugins slug which you want to check installed or not
195 189 */
196 - function _is_dep_plugin_installed($plugin_slug) {
190 + function ultimate_store_kit_is_dependency_plugin_installed($plugin_slug) {
191 + if (! function_exists('get_plugins')) {
192 + require_once ABSPATH . 'wp-admin/includes/plugin.php';
193 + }
194 +
197 195 $file_path = $plugin_slug;
198 196 $installed_plugins = get_plugins();
199 197
200 198 return isset($installed_plugins[$file_path]);