PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.5
ShopBuilder – WooCommerce Builder For Elementor v2.6.5
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/ShopBuilder.php +8 -3 2.1.132.6.5 View file →
@@ -12,8 +12,9 @@
12 12 use RadiusTheme\SB\Modules\ModuleManager;
13 13 use RadiusTheme\SB\Traits\SingletonTrait;
14 14 use RadiusTheme\SB\Controllers\Shortcodes;
15 15 use RadiusTheme\SB\Controllers\Dependencies;
16 +use RadiusTheme\SB\Controllers\CacheController;
16 17 use RadiusTheme\SB\Controllers\Admin\AdminInit;
17 18 use RadiusTheme\SB\Controllers\AssetsController;
18 19 use RadiusTheme\SB\Controllers\BuilderController;
19 20 use RadiusTheme\SB\Controllers\SupportController;
@@ -20,8 +21,9 @@
20 21 use RadiusTheme\SB\Controllers\Hooks\FilterHooks;
21 22 use RadiusTheme\SB\Controllers\Hooks\ActionHooks;
22 23 use RadiusTheme\SB\Controllers\Frontend\Ajax\AddToCart;
23 24 use RadiusTheme\SB\Controllers\Frontend\Ajax\AjaxLogin;
25 +use RadiusTheme\SB\Controllers\Frontend\Ajax\UpdateCheckoutSection;
24 26
25 27 // Do not allow directly accessing this file.
26 28 if ( ! defined( 'ABSPATH' ) ) {
27 29 exit( 'This script cannot be accessed directly.' );
@@ -77,9 +79,9 @@
77 79 */
78 80 private function __construct() {
79 81 $this->define_constants();
80 82 $this->post_type = 'product';
81 - $this->current_theme = wp_get_theme()->get( 'Template' ) ? wp_get_theme()->get( 'Template' ) : wp_get_theme()->get( 'TextDomain' );
83 + $this->current_theme = wp_get_theme()->get( 'Template' ) ? wp_get_theme()->get( 'Template' ) : ( wp_get_theme()->get( 'TextDomain' ) ? wp_get_theme()->get( 'TextDomain' ) : strtolower( str_replace( ' ', '', wp_get_theme()->get( 'Name' ) ) ) );
82 84 add_action( 'init', [ $this, 'language' ] );
83 85 add_action( 'plugins_loaded', [ $this, 'init' ], 15 );
84 86
85 87 // Register Plugin Active Hook.
@@ -87,9 +89,11 @@
87 89
88 90 // Register Plugin Deactivate Hook.
89 91 register_deactivation_hook( RTSB_FILE, [ Installation::class, 'deactivation' ] );
90 92
91 - SupportController::instance();
93 + if ( Dependencies::instance()->check() ) {
94 + SupportController::instance();
95 + }
92 96
93 97 // HPOS Declare compatibility.
94 98 add_action(
95 99 'before_woocommerce_init',
@@ -165,9 +169,9 @@
165 169 return;
166 170 }
167 171
168 172 do_action( 'rtsb/before/loaded' );
169 -
173 + CacheController::instance();
170 174 // Include File.
171 175 AssetsController::instance();
172 176 ModuleManager::instance();
173 177
@@ -173,8 +177,9 @@
173 177
174 178 // Ajax.
175 179 AddToCart::instance();
176 180 AjaxLogin::instance();
181 + UpdateCheckoutSection::instance();
177 182
178 183 BuilderController::instance();
179 184 FilterHooks::init_hooks();
180 185 ActionHooks::init_hooks();