PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.1.0
ShopBuilder – WooCommerce Builder For Elementor v3.1.0
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/Models/GeneralList.php +153 -197 2.0.3 → 3.1.0 View file →
@@ -1,10 +1,8 @@
1 1 <?php
2 2
3 3 namespace RadiusTheme\SB\Models;
4 4
5 -// use RadiusTheme\SB\Helpers\Fns;
6 -use RadiusTheme\SB\Elementor\Helper\ControlHelper;
7 5 use RadiusTheme\SB\Helpers\Fns;
8 6 use RadiusTheme\SB\Models\Base\ListModel;
9 7 use RadiusTheme\SB\Traits\SingletonTrait;
10 8
@@ -51,8 +49,73 @@
51 49 * @return array
52 50 */
53 51 protected function raw_list() {
54 52 $list = [
53 + 'optimization' => apply_filters(
54 + 'rtsb/settings/optimization/options',
55 + [
56 + 'id' => 'optimization',
57 + 'category' => 'general',
58 + 'title' => esc_html__( 'Advanced Optimizations', 'shopbuilder' ),
59 + 'package' => $this->pro_version_checker(),
60 + 'badge' => 'new',
61 + 'active_field' => [
62 + 'disable' => true,
63 + ],
64 + 'fields' => [
65 + 'optimization_intro' => [
66 + 'id' => 'optimization_intro',
67 + 'type' => 'description',
68 + 'text' => __( 'Optimize your website for maximum performance from these advanced options. <br /> <span style="color: #dc3545; display: block; margin-top: 10px;">⚠️ Note: After enabling or disabling any of these settings, clear the ShopBuilder cache to ensure changes are applied correctly.</span>', 'shopbuilder' ),
69 + ],
70 + 'enable_optimization' => [
71 + 'id' => 'enable',
72 + 'type' => 'switch',
73 + 'label' => esc_html__( 'Enable Asset Optimization?', 'shopbuilder' ),
74 + 'help' => esc_html__( 'Enable this option to dynamically load assets (styles, scripts) only when needed, helping to optimize your website’s performance', 'shopbuilder' ),
75 + ],
76 + 'load_elementor_scripts' => [
77 + 'id' => 'enable',
78 + 'type' => 'switch',
79 + 'label' => esc_html__( 'Load Elementor Assets?', 'shopbuilder' ),
80 + 'help' => __( 'Enable this option to load necessary Elementor assets on your website. <br /> <span style="color: #dc3545;">Turn this off if you are not using Elementor widgets to optimize site performance.</span>', 'shopbuilder' ),
81 + 'value' => 'on',
82 + 'dependency' => [
83 + 'rules' => [
84 + [
85 + 'item' => 'general.optimization.enable_optimization',
86 + 'value' => 'on',
87 + 'operator' => '==',
88 + ],
89 + ],
90 + ],
91 + ],
92 + 'context_asset_loading' => [
93 + 'id' => 'enable',
94 + 'type' => 'switch',
95 + 'label' => esc_html__( 'Context-Aware Asset Loading?', 'shopbuilder' ),
96 + 'help' => esc_html__( 'Enable this option to dynamically Load only the necessary CSS and JS for each page type (e.g., product, cart, checkout). Disabling this option will include all assets globally on every page.', 'shopbuilder' ),
97 + 'dependency' => [
98 + 'rules' => [
99 + [
100 + 'item' => 'general.optimization.enable_optimization',
101 + 'value' => 'on',
102 + 'operator' => '==',
103 + ],
104 + ],
105 + ],
106 + ],
107 + /**
108 + 'load_gutenberg_scripts' => [
109 + 'id' => 'enable',
110 + 'type' => 'switch',
111 + 'label' => esc_html__( 'Load Gutenberg Scripts?', 'shopbuilder' ),
112 + 'help' => esc_html__( 'Switch on to load elementor scripts by dynamically loading scripts', 'shopbuilder' ),
113 + ],
114 + */
115 + ],
116 + ],
117 + ),
55 118 'notification' => apply_filters(
56 119 'rtsb/settings/notification/options',
57 120 [
58 121 'id' => 'notification',
@@ -62,8 +125,13 @@
62 125 'active_field' => [
63 126 'disable' => true,
64 127 ],
65 128 'fields' => [
129 + 'notification_intro' => [
130 + 'id' => 'notification_intro',
131 + 'type' => 'description',
132 + 'text' => esc_html__( 'Customize notifications for user actions such as adding items to cart, adding to wishlist, or comparing products.', 'shopbuilder' ),
133 + ],
66 134 'notification_position' => [
67 135 'id' => 'notification_position',
68 136 'value' => 'center-center',
69 137 'type' => 'select',
@@ -68,17 +136,15 @@
68 136 'value' => 'center-center',
69 137 'type' => 'select',
70 138 'label' => esc_html__( 'Notification Position', 'shopbuilder' ),
71 139 'options' => [
72 - 'center-center' => esc_html__( 'Center Center', 'shopbuilder' ),
73 - 'top-right' => esc_html__( 'Top Right', 'shopbuilder' ),
74 - 'bottom-right' => esc_html__( 'Bottom Right', 'shopbuilder' ),
75 - 'bottom-left' => esc_html__( 'Bottom Left', 'shopbuilder' ),
76 - 'top-left' => esc_html__( 'Top Left', 'shopbuilder' ),
77 - //'top-full-width' => esc_html__( 'Top Full Width', 'shopbuilder' ),
78 - //'bottom-full-width' => esc_html__( 'Bottom Full Width', 'shopbuilder' ),
79 - 'top-center' => esc_html__( 'Top center', 'shopbuilder' ),
80 - 'bottom-center' => esc_html__( 'Bottom center', 'shopbuilder' ),
140 + 'center-center' => esc_html__( 'Center Center', 'shopbuilder' ),
141 + 'top-right' => esc_html__( 'Top Right', 'shopbuilder' ),
142 + 'bottom-right' => esc_html__( 'Bottom Right', 'shopbuilder' ),
143 + 'bottom-left' => esc_html__( 'Bottom Left', 'shopbuilder' ),
144 + 'top-left' => esc_html__( 'Top Left', 'shopbuilder' ),
145 + 'top-center' => esc_html__( 'Top center', 'shopbuilder' ),
146 + 'bottom-center' => esc_html__( 'Bottom center', 'shopbuilder' ),
81 147 ],
82 148 ],
83 149 'notification_color' => [
84 150 'id' => 'notification_color',
@@ -97,9 +163,14 @@
97 163 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
98 164 'type' => 'color',
99 165 'tab' => 'floating_button',
100 166 ],
101 -
167 + 'hide_notification' => [
168 + 'id' => 'hide_notification',
169 + 'type' => 'switch',
170 + 'label' => esc_html__( 'Hide Notifications', 'shopbuilder' ),
171 + 'help' => esc_html__( 'Enable this option if you don\'t want the notifications to show.', 'shopbuilder' ),
172 + ],
102 173 ],
103 174 ],
104 175 ),
105 176 'social_share' => apply_filters(
@@ -112,8 +183,13 @@
112 183 'active_field' => [
113 184 'disable' => true,
114 185 ],
115 186 'fields' => [
187 + 'social_share_intro' => [
188 + 'id' => 'social_share_intro',
189 + 'type' => 'description',
190 + 'text' => esc_html__( 'Configure social sharing platforms for products sharing.', 'shopbuilder' ),
191 + ],
116 192 'share_platforms' => [
117 193 'id' => 'share_platforms',
118 194 'label' => esc_html__( 'Select Social Sharing Platforms', 'shopbuilder' ),
119 195 'type' => 'checkbox',
@@ -126,25 +202,8 @@
126 202 'type' => 'switch',
127 203 'label' => esc_html__( 'Sharing Button in Single Product Page', 'shopbuilder' ),
128 204 'help' => esc_html__( 'Enable this option to allow share a product from product page. Woocommerce Supported Sharing plugins added to Hook: woocommerce_share', 'shopbuilder' ),
129 205 ],
130 - /*
131 - * TODO : Implement later.
132 - 'share_icon_show_to_product_page' => array(
133 - 'id' => 'share_icon_show_to_product_page',
134 - 'type' => 'switch',
135 - 'label' => esc_html__( 'Sharing Icon in Single Product Page', 'shopbuilder' ),
136 - 'dependency' => [
137 - 'rules' => [
138 - [
139 - 'item' => 'general.social_share.share_platforms_to_product_page',
140 - 'value' => 'on',
141 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
142 - ],
143 - ],
144 - ],
145 - ),
146 - */
147 206 'share_icon_layout' => [
148 207 'type' => 'select',
149 208 'value' => 'share-layout1',
150 209 'label' => esc_html__( 'Share Button Layout', 'shopbuilder' ),
@@ -164,8 +223,20 @@
164 223 ],
165 224 ],
166 225 ],
167 226 ),
227 + 'guest_user' => apply_filters(
228 + 'rtsb/settings/guest_user/options',
229 + [
230 + 'id' => 'guest_user',
231 + 'category' => 'general',
232 + 'title' => esc_html__( 'Guest User Controls', 'shopbuilder' ),
233 + 'package' => $this->pro_package(),
234 + 'active_field' => [
235 + 'disable' => true,
236 + ],
237 + ],
238 + ),
168 239 'tooltip' => apply_filters(
169 240 'rtsb/settings/tooltip/options',
170 241 [
171 242 'id' => 'tooltip',
@@ -184,17 +255,22 @@
184 255 'category' => 'checkout',
185 256 'title' => esc_html__( 'Billing Form Settings', 'shopbuilder' ),
186 257 'package' => 'free',
187 258 'active_field' => [
188 - 'label' => esc_html__( 'Enable Billing form settings?', 'shopbuilder' ),
189 - 'help' => esc_html__( 'Switch on to Billing form settings.', 'shopbuilder' ),
259 + 'label' => esc_html__( 'Customize Billing Form Fields?', 'shopbuilder' ),
260 + 'help' => esc_html__( 'Switch on to customize billing form fields.', 'shopbuilder' ),
190 261 ],
191 262 'fields' => [
192 - 'billing_first_name_heading' => [
263 + 'checkout_billing_info' => [
264 + 'id' => 'checkout_billing_info',
265 + 'type' => 'title',
266 + 'label' => __( 'The below form fields customization will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is activated.', 'shopbuilder' ),
267 + 'customClass' => 'checkout-notice',
268 + ],
269 + 'billing_first_name_heading' => [
193 270 'id' => 'billing_first_name_heading',
194 271 'type' => 'title',
195 272 'label' => esc_html__( 'First Name', 'shopbuilder' ),
196 - // 'tab' => 'name',
197 273 ],
198 274 'billing_first_name' => [
199 275 'id' => 'billing_first_name',
200 276 'label' => esc_html__( 'First name', 'shopbuilder' ),
@@ -210,9 +286,8 @@
210 286 'value' => 'required',
211 287 'label' => 'Required Field',
212 288 ],
213 289 ],
214 - // 'tab' => 'name',
215 290 ],
216 291 'billing_first_name_label' => [
217 292 'id' => 'billing_first_name_label',
218 293 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
@@ -217,15 +292,14 @@
217 292 'id' => 'billing_first_name_label',
218 293 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
219 294 'type' => 'text',
220 295 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
221 - // 'tab' => 'name',
222 296 'dependency' => [
223 297 'rules' => [
224 298 [
225 299 'item' => 'general.billing_form.billing_first_name',
226 300 'value' => 'show',
227 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
301 + 'operator' => '==',
228 302 ],
229 303 ],
230 304 ],
231 305 ],
@@ -233,25 +307,23 @@
233 307 'id' => 'billing_first_name_placeholder',
234 308 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ),
235 309 'type' => 'text',
236 310 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
237 - // 'tab' => 'name',
238 311 'dependency' => [
239 312 'rules' => [
240 313 [
241 314 'item' => 'general.billing_form.billing_first_name',
242 315 'value' => 'show',
243 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
316 + 'operator' => '==',
244 317 ],
245 318 ],
246 319 ],
247 320 ],
248 321
249 - 'billing_last_name_heading' => [
322 + 'billing_last_name_heading' => [
250 323 'id' => 'billing_last_name_heading',
251 324 'type' => 'title',
252 325 'label' => esc_html__( 'Last Name', 'shopbuilder' ),
253 - //'tab' => 'name',
254 326 ],
255 327 'billing_last_name' => [
256 328 'id' => 'billing_last_name',
257 329 'label' => esc_html__( 'Last name', 'shopbuilder' ),
@@ -267,9 +339,8 @@
267 339 'value' => 'required',
268 340 'label' => 'Required Field',
269 341 ],
270 342 ],
271 - // 'tab' => 'name',
272 343 ],
273 344
274 345 'billing_last_name_label' => [
275 346 'id' => 'billing_last_name_label',
@@ -275,9 +346,8 @@
275 346 'id' => 'billing_last_name_label',
276 347 'label' => esc_html__( 'Last name label', 'shopbuilder' ),
277 348 'type' => 'text',
278 349 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
279 - // 'tab' => 'name',
280 350 'dependency' => [
281 351 'rules' => [
282 352 [
283 353 'item' => 'general.billing_form.billing_last_name',
@@ -291,9 +361,8 @@
291 361 'id' => 'billing_last_name_placeholder',
292 362 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
293 363 'type' => 'text',
294 364 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
295 - // 'tab' => 'name',
296 365 'dependency' => [
297 366 'rules' => [
298 367 [
299 368 'item' => 'general.billing_form.billing_last_name',
@@ -303,13 +372,12 @@
303 372 ],
304 373 ],
305 374 ],
306 375
307 - 'billing_company_heading' => [
376 + 'billing_company_heading' => [
308 377 'id' => 'billing_company_heading',
309 378 'type' => 'title',
310 379 'label' => esc_html__( 'Company', 'shopbuilder' ),
311 - //'tab' => 'company',
312 380 ],
313 381 'billing_company' => [
314 382 'id' => 'billing_company',
315 383 'label' => esc_html__( 'Company name', 'shopbuilder' ),
@@ -328,9 +396,8 @@
328 396 'value' => 'required',
329 397 'label' => 'Required Field',
330 398 ],
331 399 ],
332 - // 'tab' => 'company',
333 400 ],
334 401
335 402 'billing_company_label' => [
336 403 'id' => 'billing_company_label',
@@ -336,9 +403,8 @@
336 403 'id' => 'billing_company_label',
337 404 'label' => esc_html__( 'Company label', 'shopbuilder' ),
338 405 'type' => 'text',
339 406 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
340 - // 'tab' => 'company',
341 407 'dependency' => [
342 408 'rules' => [
343 409 [
344 410 'item' => 'general.billing_form.billing_company',
@@ -352,9 +418,8 @@
352 418 'id' => 'billing_company_placeholder',
353 419 'label' => esc_html__( 'Company Placeholder', 'shopbuilder' ),
354 420 'type' => 'text',
355 421 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
356 - // 'tab' => 'company',
357 422 'dependency' => [
358 423 'rules' => [
359 424 [
360 425 'item' => 'general.billing_form.billing_company',
@@ -364,13 +429,12 @@
364 429 ],
365 430 ],
366 431 ],
367 432
368 - 'billing_country_heading' => [
433 + 'billing_country_heading' => [
369 434 'id' => 'billing_country_heading',
370 435 'type' => 'title',
371 436 'label' => esc_html__( 'Country', 'shopbuilder' ),
372 - //'tab' => 'country',
373 437 ],
374 438 'billing_country' => [
375 439 'id' => 'billing_country',
376 440 'label' => esc_html__( 'Country', 'shopbuilder' ),
@@ -376,22 +440,18 @@
376 440 'label' => esc_html__( 'Country', 'shopbuilder' ),
377 441 'type' => 'checkbox',
378 442 'orientation' => 'vertical',
379 443 'value' => [ 'show', 'required' ],
380 - // 'help' => esc_html__( 'If the Shipping Form is enabled, the Country field is mandatory.', 'shopbuilder' ),
381 444 'options' => [
382 445 [
383 446 'value' => 'show',
384 447 'label' => 'Show Country?',
385 - // 'disabled' => true,
386 448 ],
387 449 [
388 450 'value' => 'required',
389 451 'label' => 'Required Field',
390 - // 'disabled' => true,
391 452 ],
392 453 ],
393 - // 'tab' => 'country',
394 454 ],
395 455
396 456 'billing_country_label' => [
397 457 'id' => 'billing_country_label',
@@ -397,9 +457,8 @@
397 457 'id' => 'billing_country_label',
398 458 'label' => esc_html__( 'Country label', 'shopbuilder' ),
399 459 'type' => 'text',
400 460 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
401 - // 'tab' => 'country',
402 461 'dependency' => [
403 462 'rules' => [
404 463 [
405 464 'item' => 'general.billing_form.billing_country',
@@ -408,13 +467,12 @@
408 467 ],
409 468 ],
410 469 ],
411 470 ],
412 - 'billing_address_1_heading' => [
471 + 'billing_address_1_heading' => [
413 472 'id' => 'billing_address_1_heading',
414 473 'type' => 'title',
415 474 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
416 - //'tab' => 'address',
417 475 ],
418 476 'billing_address_1' => [
419 477 'id' => 'billing_address_1',
420 478 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
@@ -430,9 +488,8 @@
430 488 'value' => 'required',
431 489 'label' => 'Required Field',
432 490 ],
433 491 ],
434 - // 'tab' => 'address',
435 492 ],
436 493
437 494 'billing_address_1_label' => [
438 495 'id' => 'billing_address_1_label',
@@ -438,9 +495,8 @@
438 495 'id' => 'billing_address_1_label',
439 496 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ),
440 497 'type' => 'text',
441 498 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
442 - // 'tab' => 'address',
443 499 'dependency' => [
444 500 'rules' => [
445 501 [
446 502 'item' => 'general.billing_form.billing_address_1',
@@ -454,9 +510,8 @@
454 510 'id' => 'billing_address_1_placeholder',
455 511 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
456 512 'type' => 'text',
457 513 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
458 - // 'tab' => 'address',
459 514 'dependency' => [
460 515 'rules' => [
461 516 [
462 517 'item' => 'general.billing_form.billing_address_1',
@@ -465,14 +520,13 @@
465 520 ],
466 521 ],
467 522 ],
468 523 ],
469 - 'billing_address_2_heading' => [
470 - 'id' => 'billing_address_2_heading',
471 - 'type' => 'title',
472 - 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
473 - //'tab' => 'address',
474 - 'dependency' => [
524 + 'billing_address_2_heading' => [
525 + 'id' => 'billing_address_2_heading',
526 + 'type' => 'title',
527 + 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
528 + 'dependency' => [
475 529 'rules' => [
476 530 [
477 531 'item' => 'general.billing_form.billing_address_1',
478 532 'value' => 'show',
@@ -485,11 +539,11 @@
485 539 'id' => 'billing_address_2',
486 540 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
487 541 'type' => 'checkbox',
488 542 'orientation' => 'vertical',
489 - // 'tab' => 'address',
490 - 'value' => [ 'show',
491 - 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional',
543 + 'value' => [
544 + 'show',
545 + 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional',
492 546 ],
493 547 'options' => [
494 548 [
495 549 'value' => 'show',
@@ -512,9 +566,8 @@
512 566 'id' => 'billing_address_2_label',
513 567 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ),
514 568 'type' => 'text',
515 569 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
516 - // 'tab' => 'address',
517 570 'dependency' => [
518 571 'rules' => [
519 572 [
520 573 'item' => 'general.billing_form.billing_address_1',
@@ -533,9 +586,8 @@
533 586 'id' => 'billing_address_2_placeholder',
534 587 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
535 588 'type' => 'text',
536 589 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
537 - // 'tab' => 'address',
538 590 'dependency' => [
539 591 'rules' => [
540 592 [
541 593 'item' => 'general.billing_form.billing_address_1',
@@ -549,13 +601,12 @@
549 601 ],
550 602 ],
551 603 ],
552 604 ],
553 - 'billing_city_heading' => [
605 + 'billing_city_heading' => [
554 606 'id' => 'billing_city_heading',
555 607 'type' => 'title',
556 608 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
557 - // 'tab' => 'city',
558 609 ],
559 610 'billing_city' => [
560 611 'id' => 'billing_city',
561 612 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
@@ -561,9 +612,8 @@
561 612 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
562 613 'type' => 'checkbox',
563 614 'orientation' => 'vertical',
564 615 'value' => [ 'show', 'required' ],
565 - // 'tab' => 'city',
566 616 'options' => [
567 617 [
568 618 'value' => 'show',
569 619 'label' => 'Show Town / City?',
@@ -579,9 +629,8 @@
579 629 'id' => 'billing_city_label',
580 630 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
581 631 'type' => 'text',
582 632 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
583 - // 'tab' => 'city',
584 633 'dependency' => [
585 634 'rules' => [
586 635 [
587 636 'item' => 'general.billing_form.billing_city',
@@ -595,9 +644,8 @@
595 644 'id' => 'billing_city_placeholder',
596 645 'label' => esc_html__( 'City placeholder', 'shopbuilder' ),
597 646 'type' => 'text',
598 647 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
599 - // 'tab' => 'city',
600 648 'dependency' => [
601 649 'rules' => [
602 650 [
603 651 'item' => 'general.billing_form.billing_city',
@@ -606,13 +654,12 @@
606 654 ],
607 655 ],
608 656 ],
609 657 ],
610 - 'billing_state_heading' => [
658 + 'billing_state_heading' => [
611 659 'id' => 'billing_city_heading',
612 660 'type' => 'title',
613 661 'label' => esc_html__( 'State', 'shopbuilder' ),
614 - // 'tab' => 'state',
615 662 ],
616 663 'billing_state' => [
617 664 'id' => 'billing_state',
618 665 'label' => esc_html__( 'State', 'shopbuilder' ),
@@ -628,9 +675,8 @@
628 675 'value' => 'required',
629 676 'label' => 'Required Field',
630 677 ],
631 678 ],
632 - // 'tab' => 'state',
633 679 ],
634 680
635 681 'billing_state_label' => [
636 682 'id' => 'billing_state_label',
@@ -636,10 +682,8 @@
636 682 'id' => 'billing_state_label',
637 683 'label' => esc_html__( 'State label', 'shopbuilder' ),
638 684 'type' => 'text',
639 685 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
640 - //'help' => esc_html__( 'Leave empty to set default. If the Shipping Form is enabled, the State field is mandatory.', 'shopbuilder' ),
641 - // 'tab' => 'state',
642 686 'dependency' => [
643 687 'rules' => [
644 688 [
645 689 'item' => 'general.billing_form.billing_state',
@@ -648,13 +692,12 @@
648 692 ],
649 693 ],
650 694 ],
651 695 ],
652 - 'billing_postcode_heading' => [
696 + 'billing_postcode_heading' => [
653 697 'id' => 'billing_postcode_heading',
654 698 'type' => 'title',
655 699 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
656 - // 'tab' => 'postcode',
657 700 ],
658 701 'billing_postcode' => [
659 702 'id' => 'billing_postcode',
660 703 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
@@ -670,9 +713,8 @@
670 713 'value' => 'required',
671 714 'label' => 'Required Field',
672 715 ],
673 716 ],
674 - // 'tab' => 'postcode',
675 717 ],
676 718 'billing_postcode_label' => [
677 719 'id' => 'billing_postcode_label',
678 720 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
@@ -677,9 +719,8 @@
677 719 'id' => 'billing_postcode_label',
678 720 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
679 721 'type' => 'text',
680 722 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
681 - // 'tab' => 'postcode',
682 723 'dependency' => [
683 724 'rules' => [
684 725 [
685 726 'item' => 'general.billing_form.billing_postcode',
@@ -693,9 +734,8 @@
693 734 'id' => 'billing_postcode_placeholder',
694 735 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
695 736 'type' => 'text',
696 737 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
697 - // 'tab' => 'postcode',
698 738 'dependency' => [
699 739 'rules' => [
700 740 [
701 741 'item' => 'general.billing_form.billing_postcode',
@@ -704,13 +744,12 @@
704 744 ],
705 745 ],
706 746 ],
707 747 ],
708 - 'billing_phone_heading' => [
748 + 'billing_phone_heading' => [
709 749 'id' => 'billing_phone_heading',
710 750 'type' => 'title',
711 751 'label' => esc_html__( 'Phone', 'shopbuilder' ),
712 - // 'tab' => 'phone',
713 752 ],
714 753 'billing_phone' => [
715 754 'id' => 'billing_phone',
716 755 'label' => esc_html__( 'Phone', 'shopbuilder' ),
@@ -715,9 +754,8 @@
715 754 'id' => 'billing_phone',
716 755 'label' => esc_html__( 'Phone', 'shopbuilder' ),
717 756 'type' => 'checkbox',
718 757 'orientation' => 'vertical',
719 - // 'tab' => 'phone',
720 758 'value' => [
721 759 'show',
722 760 'required' === get_option( 'woocommerce_checkout_phone_field', 'required' ) ? 'required' : 'optional',
723 761 ],
@@ -737,9 +775,8 @@
737 775 'id' => 'billing_phone_label',
738 776 'label' => esc_html__( 'Phone field label', 'shopbuilder' ),
739 777 'type' => 'text',
740 778 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
741 - // 'tab' => 'phone',
742 779 'dependency' => [
743 780 'rules' => [
744 781 [
745 782 'item' => 'general.billing_form.billing_phone',
@@ -753,9 +790,8 @@
753 790 'id' => 'billing_phone_placeholder',
754 791 'label' => esc_html__( 'Phone field placeholder', 'shopbuilder' ),
755 792 'type' => 'text',
756 793 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
757 - // 'tab' => 'phone',
758 794 'dependency' => [
759 795 'rules' => [
760 796 [
761 797 'item' => 'general.billing_form.billing_phone',
@@ -764,13 +800,12 @@
764 800 ],
765 801 ],
766 802 ],
767 803 ],
768 - 'billing_email_heading' => [
804 + 'billing_email_heading' => [
769 805 'id' => 'billing_email_heading',
770 806 'type' => 'title',
771 807 'label' => esc_html__( 'Email', 'shopbuilder' ),
772 - // 'tab' => 'email',
773 808 ],
774 809 'billing_email' => [
775 810 'id' => 'billing_email',
776 811 'label' => esc_html__( 'Email address', 'shopbuilder' ),
@@ -775,9 +810,8 @@
775 810 'id' => 'billing_email',
776 811 'label' => esc_html__( 'Email address', 'shopbuilder' ),
777 812 'type' => 'checkbox',
778 813 'orientation' => 'vertical',
779 - // 'tab' => 'email',
780 814 'value' => [ 'show', 'required' ],
781 815 'options' => [
782 816 [
783 817 'value' => 'show',
@@ -793,9 +827,8 @@
793 827 'id' => 'billing_email_label',
794 828 'label' => esc_html__( 'Email address field label', 'shopbuilder' ),
795 829 'type' => 'text',
796 830 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
797 - // 'tab' => 'email',
798 831 'dependency' => [
799 832 'rules' => [
800 833 [
801 834 'item' => 'general.billing_form.billing_email',
@@ -809,9 +842,8 @@
809 842 'id' => 'billing_email_placeholder',
810 843 'label' => esc_html__( 'Email address field placeholder', 'shopbuilder' ),
811 844 'type' => 'text',
812 845 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
813 - // 'tab' => 'email',
814 846 'dependency' => [
815 847 'rules' => [
816 848 [
817 849 'item' => 'general.billing_form.billing_email',
@@ -832,17 +864,22 @@
832 864 'category' => 'checkout',
833 865 'title' => esc_html__( 'Shipping Form Settings', 'shopbuilder' ),
834 866 'package' => 'free',
835 867 'active_field' => [
836 - 'label' => esc_html__( 'Enable Shipping form settings?', 'shopbuilder' ),
837 - 'help' => esc_html__( 'Switch on to Shipping form settings.', 'shopbuilder' ),
868 + 'label' => esc_html__( 'Customize Shipping form Fields?', 'shopbuilder' ),
869 + 'help' => esc_html__( 'Switch on to customize shipping form fields.', 'shopbuilder' ),
838 870 ],
839 871 'fields' => [
840 - 'shipping_first_name_heading' => [
872 + 'checkout_shipping_info' => [
873 + 'id' => 'checkout_shipping_info',
874 + 'type' => 'title',
875 + 'label' => __( 'The below form fields customization will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is activated.', 'shopbuilder' ),
876 + 'customClass' => 'checkout-notice',
877 + ],
878 + 'shipping_first_name_heading' => [
841 879 'id' => 'shipping_first_name_heading',
842 880 'type' => 'title',
843 881 'label' => esc_html__( 'First Name', 'shopbuilder' ),
844 - // 'tab' => 'name',
845 882 ],
846 883 'shipping_first_name' => [
847 884 'id' => 'shipping_first_name',
848 885 'label' => esc_html__( 'First name', 'shopbuilder' ),
@@ -858,9 +895,8 @@
858 895 'value' => 'required',
859 896 'label' => 'Required Field',
860 897 ],
861 898 ],
862 - // 'tab' => 'name',
863 899 ],
864 900 'shipping_first_name_label' => [
865 901 'id' => 'shipping_first_name_label',
866 902 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
@@ -865,9 +901,8 @@
865 901 'id' => 'shipping_first_name_label',
866 902 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
867 903 'type' => 'text',
868 904 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
869 - // 'tab' => 'name',
870 905 'dependency' => [
871 906 'rules' => [
872 907 [
873 908 'item' => 'general.shipping_form.shipping_first_name',
@@ -881,9 +916,8 @@
881 916 'id' => 'shipping_first_name_placeholder',
882 917 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ),
883 918 'type' => 'text',
884 919 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
885 - // 'tab' => 'country',
886 920 'dependency' => [
887 921 'rules' => [
888 922 [
889 923 'item' => 'general.shipping_form.shipping_first_name',
@@ -892,13 +926,12 @@
892 926 ],
893 927 ],
894 928 ],
895 929 ],
896 - 'shipping_first_last_heading' => [
930 + 'shipping_first_last_heading' => [
897 931 'id' => 'shipping_first_last_heading',
898 932 'type' => 'title',
899 933 'label' => esc_html__( 'Last Name', 'shopbuilder' ),
900 - // 'tab' => 'name',
901 934 ],
902 935 'shipping_last_name' => [
903 936 'id' => 'shipping_last_name',
904 937 'label' => esc_html__( 'Last name', 'shopbuilder' ),
@@ -914,9 +947,8 @@
914 947 'value' => 'required',
915 948 'label' => 'Required Field',
916 949 ],
917 950 ],
918 - // 'tab' => 'name',
919 951 ],
920 952
921 953 'shipping_last_name_label' => [
922 954 'id' => 'shipping_last_name_label',
@@ -922,9 +954,8 @@
922 954 'id' => 'shipping_last_name_label',
923 955 'label' => esc_html__( 'Last name label', 'shopbuilder' ),
924 956 'type' => 'text',
925 957 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
926 - // 'tab' => 'name',
927 958 'dependency' => [
928 959 'rules' => [
929 960 [
930 961 'item' => 'general.shipping_form.shipping_last_name',
@@ -938,9 +969,8 @@
938 969 'id' => 'shipping_last_name_placeholder',
939 970 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
940 971 'type' => 'text',
941 972 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
942 - // 'tab' => 'country',
943 973 'dependency' => [
944 974 'rules' => [
945 975 [
946 976 'item' => 'general.shipping_form.shipping_last_name',
@@ -949,13 +979,12 @@
949 979 ],
950 980 ],
951 981 ],
952 982 ],
953 - 'shipping_company_heading' => [
983 + 'shipping_company_heading' => [
954 984 'id' => 'shipping_company_heading',
955 985 'type' => 'title',
956 986 'label' => esc_html__( 'Company', 'shopbuilder' ),
957 - // 'tab' => 'name',
958 987 ],
959 988 'shipping_company' => [
960 989 'id' => 'shipping_company',
961 990 'label' => esc_html__( 'Company name', 'shopbuilder' ),
@@ -971,9 +1000,8 @@
971 1000 'value' => 'required',
972 1001 'label' => 'Required Field',
973 1002 ],
974 1003 ],
975 - // 'tab' => 'company',
976 1004 ],
977 1005
978 1006 'shipping_company_label' => [
979 1007 'id' => 'shipping_company_label',
@@ -979,9 +1007,8 @@
979 1007 'id' => 'shipping_company_label',
980 1008 'label' => esc_html__( 'Company label', 'shopbuilder' ),
981 1009 'type' => 'text',
982 1010 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
983 - // 'tab' => 'company',
984 1011 'dependency' => [
985 1012 'rules' => [
986 1013 [
987 1014 'item' => 'general.shipping_form.shipping_company',
@@ -995,9 +1022,8 @@
995 1022 'id' => 'shipping_company_placeholder',
996 1023 'label' => esc_html__( 'Shipping company Placeholder', 'shopbuilder' ),
997 1024 'type' => 'text',
998 1025 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
999 - // 'tab' => 'country',
1000 1026 'dependency' => [
1001 1027 'rules' => [
1002 1028 [
1003 1029 'item' => 'general.shipping_form.shipping_company',
@@ -1006,13 +1032,12 @@
1006 1032 ],
1007 1033 ],
1008 1034 ],
1009 1035 ],
1010 - 'shipping_country_heading' => [
1036 + 'shipping_country_heading' => [
1011 1037 'id' => 'shipping_country_heading',
1012 1038 'type' => 'title',
1013 1039 'label' => esc_html__( 'Country', 'shopbuilder' ),
1014 - // 'tab' => 'name',
1015 1040 ],
1016 1041 'shipping_country' => [
1017 1042 'id' => 'shipping_country',
1018 1043 'label' => esc_html__( 'Country', 'shopbuilder' ),
@@ -1022,17 +1047,14 @@
1022 1047 'options' => [
1023 1048 [
1024 1049 'value' => 'show',
1025 1050 'label' => 'Show Country?',
1026 - // 'disabled' => true,
1027 1051 ],
1028 1052 [
1029 1053 'value' => 'required',
1030 1054 'label' => 'Required Field',
1031 - // 'disabled' => true,
1032 1055 ],
1033 1056 ],
1034 - // 'tab' => 'country',
1035 1057 ],
1036 1058
1037 1059 'shipping_country_label' => [
1038 1060 'id' => 'shipping_country_label',
@@ -1048,13 +1070,12 @@
1048 1070 ],
1049 1071 ],
1050 1072 ],
1051 1073 ],
1052 - 'shipping_address_1_heading' => [
1074 + 'shipping_address_1_heading' => [
1053 1075 'id' => 'shipping_address_1_heading',
1054 1076 'type' => 'title',
1055 1077 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
1056 - // 'tab' => 'name',
1057 1078 ],
1058 1079 'shipping_address_1' => [
1059 1080 'id' => 'shipping_address_1',
1060 1081 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
@@ -1070,9 +1091,8 @@
1070 1091 'value' => 'required',
1071 1092 'label' => 'Required Field',
1072 1093 ],
1073 1094 ],
1074 - // 'tab' => 'country',
1075 1095 ],
1076 1096
1077 1097 'shipping_address_1_label' => [
1078 1098 'id' => 'shipping_address_1_label',
@@ -1078,9 +1098,8 @@
1078 1098 'id' => 'shipping_address_1_label',
1079 1099 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ),
1080 1100 'type' => 'text',
1081 1101 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1082 - // 'tab' => 'country',
1083 1102 'dependency' => [
1084 1103 'rules' => [
1085 1104 [
1086 1105 'item' => 'general.shipping_form.shipping_address_1',
@@ -1094,9 +1113,8 @@
1094 1113 'id' => 'shipping_address_1_placeholder',
1095 1114 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
1096 1115 'type' => 'text',
1097 1116 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1098 - // 'tab' => 'country',
1099 1117 'dependency' => [
1100 1118 'rules' => [
1101 1119 [
1102 1120 'item' => 'general.shipping_form.shipping_address_1',
@@ -1105,14 +1123,13 @@
1105 1123 ],
1106 1124 ],
1107 1125 ],
1108 1126 ],
1109 - 'shipping_address_2_heading' => [
1110 - 'id' => 'shipping_address_2_heading',
1111 - 'type' => 'title',
1112 - 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
1113 - // 'tab' => 'name',
1114 - 'dependency' => [
1127 + 'shipping_address_2_heading' => [
1128 + 'id' => 'shipping_address_2_heading',
1129 + 'type' => 'title',
1130 + 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
1131 + 'dependency' => [
1115 1132 'rules' => [
1116 1133 [
1117 1134 'item' => 'general.shipping_form.shipping_address_1',
1118 1135 'value' => 'show',
@@ -1133,9 +1150,8 @@
1133 1150 'label' => 'Show Address field?',
1134 1151 ],
1135 1152 ],
1136 1153 'help' => esc_html__( 'if "Address 1" is hidden then this field also hides.', 'shopbuilder' ),
1137 - // 'tab' => 'country',
1138 1154 'dependency' => [
1139 1155 'rules' => [
1140 1156 [
1141 1157 'item' => 'general.shipping_form.shipping_address_1',
@@ -1150,9 +1166,8 @@
1150 1166 'id' => 'shipping_address_2_label',
1151 1167 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ),
1152 1168 'type' => 'text',
1153 1169 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1154 - // 'tab' => 'country',
1155 1170 'dependency' => [
1156 1171 'rules' => [
1157 1172 [
1158 1173 'item' => 'general.shipping_form.shipping_address_1',
@@ -1171,9 +1186,8 @@
1171 1186 'id' => 'shipping_address_2_placeholder',
1172 1187 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
1173 1188 'type' => 'text',
1174 1189 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1175 - // 'tab' => 'country',
1176 1190 'dependency' => [
1177 1191 'rules' => [
1178 1192 [
1179 1193 'item' => 'general.shipping_form.shipping_address_1',
@@ -1187,13 +1201,12 @@
1187 1201 ],
1188 1202 ],
1189 1203 ],
1190 1204 ],
1191 - 'shipping_city_heading' => [
1205 + 'shipping_city_heading' => [
1192 1206 'id' => 'shipping_city_heading',
1193 1207 'type' => 'title',
1194 1208 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
1195 - // 'tab' => 'name',
1196 1209 ],
1197 1210 'shipping_city' => [
1198 1211 'id' => 'shipping_city',
1199 1212 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
@@ -1209,9 +1222,8 @@
1209 1222 'value' => 'required',
1210 1223 'label' => 'Required Field',
1211 1224 ],
1212 1225 ],
1213 - // 'tab' => 'country',
1214 1226 ],
1215 1227 'shipping_city_label' => [
1216 1228 'id' => 'shipping_city_label',
1217 1229 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
@@ -1216,9 +1228,8 @@
1216 1228 'id' => 'shipping_city_label',
1217 1229 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
1218 1230 'type' => 'text',
1219 1231 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1220 - // 'tab' => 'country',
1221 1232 'dependency' => [
1222 1233 'rules' => [
1223 1234 [
1224 1235 'item' => 'general.shipping_form.shipping_city',
@@ -1232,9 +1243,8 @@
1232 1243 'id' => 'shipping_city_placeholder',
1233 1244 'label' => esc_html__( 'Shipping city placeholder', 'shopbuilder' ),
1234 1245 'type' => 'text',
1235 1246 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1236 - // 'tab' => 'country',
1237 1247 'dependency' => [
1238 1248 'rules' => [
1239 1249 [
1240 1250 'item' => 'general.shipping_form.shipping_city',
@@ -1243,13 +1253,12 @@
1243 1253 ],
1244 1254 ],
1245 1255 ],
1246 1256 ],
1247 - 'shipping_state_heading' => [
1257 + 'shipping_state_heading' => [
1248 1258 'id' => 'shipping_state_heading',
1249 1259 'type' => 'title',
1250 1260 'label' => esc_html__( 'Others', 'shopbuilder' ),
1251 - // 'tab' => 'name',
1252 1261 ],
1253 1262 'shipping_state' => [
1254 1263 'id' => 'shipping_state',
1255 1264 'label' => esc_html__( 'State', 'shopbuilder' ),
@@ -1265,33 +1274,9 @@
1265 1274 'value' => 'required',
1266 1275 'label' => 'Required Field',
1267 1276 ],
1268 1277 ],
1269 - // 'tab' => 'country',
1270 1278 ],
1271 - //
1272 - // 'shipping_state_label' => [
1273 - // 'id' => 'shipping_state_label',
1274 - // 'label' => esc_html__( 'State label', 'shopbuilder' ),
1275 - // 'type' => 'text',
1276 - // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1277 - // // 'tab' => 'country',
1278 - // 'dependency' => [
1279 - // 'rules' => [
1280 - // [
1281 - // 'item' => 'general.shipping_form.shipping_state',
1282 - // 'value' => 'show',
1283 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1284 - // ],
1285 - // ],
1286 - // ],
1287 - // ],
1288 - //'shipping_postcode_heading' => [
1289 - // 'id' => 'shipping_postcode_heading',
1290 - // 'type' => 'title',
1291 - // 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
1292 - // // 'tab' => 'name',
1293 - //],
1294 1279 'shipping_postcode' => [
1295 1280 'id' => 'shipping_postcode',
1296 1281 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
1297 1282 'type' => 'checkbox',
@@ -1300,49 +1285,20 @@
1300 1285 'options' => [
1301 1286 [
1302 1287 'value' => 'show',
1303 1288 'label' => 'Show Postcode / ZIP?',
1304 - ]
1289 + ],
1305 1290 ],
1306 - // 'tab' => 'country',
1307 1291 ],
1308 - // 'shipping_postcode_label' => [
1309 - // 'id' => 'shipping_postcode_label',
1310 - // 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
1311 - // 'type' => 'text',
1312 - // 'help' => esc_html__( 'Leave empty to set default. ', 'shopbuilder' ),
1313 - // // 'tab' => 'country',
1314 - // 'dependency' => [
1315 - // 'rules' => [
1316 - // [
1317 - // 'item' => 'general.shipping_form.shipping_postcode',
1318 - // 'value' => 'show',
1319 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1320 - // ],
1321 - // ],
1322 - // ],
1323 - // ],
1324 - // 'shipping_postcode_placeholder' => [
1325 - // 'id' => 'shipping_postcode_placeholder',
1326 - // 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
1327 - // 'type' => 'text',
1328 - // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1329 - // // 'tab' => 'country',
1330 - // 'dependency' => [
1331 - // 'rules' => [
1332 - // [
1333 - // 'item' => 'general.shipping_form.shipping_postcode',
1334 - // 'value' => 'show',
1335 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1336 - // ],
1337 - // ],
1338 - // ],
1339 - // ],
1340 1292
1341 1293 ],
1342 1294 ]
1343 1295 ),
1344 1296 ];
1297 +
1298 + if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
1299 + unset( $list['optimization']['fields']['load_elementor_scripts'] );
1300 + }
1345 1301
1346 1302 return apply_filters( 'rtsb/core/general_settings/raw_list', $list );
1347 1303 }
1348 1304 }