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
shopbuilder / app / Modules / CheckoutEditor / BillingFields.php

BillingFields.php in ShopBuilder – WooCommerce Builder For Elementor 2.6.5, at app/Modules/CheckoutEditor/BillingFields.php

39 lines 880 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace RadiusTheme\SB\Modules\CheckoutEditor;
4
5 // Do not allow directly accessing this file.
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit( 'This script cannot be accessed directly.' );
8 }
9
10 use PhpParser\Node\Expr\Empty_;
11 use RadiusTheme\SB\Traits\SingletonTrait;
12
13 /**
14 * CheckoutEditorInit
15 */
16 class BillingFields extends CheckoutEditorBase {
17 /**
18 * Singleton Trait.
19 */
20 use SingletonTrait;
21
22 /**
23 * Notifications hooks.
24 */
25 private function __construct() {
26 parent::__construct();
27 add_filter( 'woocommerce_billing_fields', [ $this, 'billing_fields_generator' ], 99, 2 );
28 }
29 /**
30 * @param array $address_fields fields.
31 * @param array $country fields.
32 * @return array
33 */
34 public function billing_fields_generator( $address_fields, $country ) {
35 $billing_fields = $this->render_fields( $this->billing_settings, $address_fields );
36 return $billing_fields;
37 }
38 }
39