@@ 25-36 (lines=12) @@ | ||
22 | /** |
|
23 | * Constructor. |
|
24 | */ |
|
25 | public function __construct() { |
|
26 | $this->id = 'api'; |
|
27 | $this->label = __( 'API', 'woocommerce' ); |
|
28 | ||
29 | add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 ); |
|
30 | add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) ); |
|
31 | add_action( 'woocommerce_sections_' . $this->id, array( $this, 'output_sections' ) ); |
|
32 | add_action( 'woocommerce_settings_form_method_tab_' . $this->id, array( $this, 'form_method' ) ); |
|
33 | add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) ); |
|
34 | ||
35 | $this->notices(); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Get sections. |
@@ 25-35 (lines=11) @@ | ||
22 | /** |
|
23 | * Constructor. |
|
24 | */ |
|
25 | public function __construct() { |
|
26 | ||
27 | $this->id = 'checkout'; |
|
28 | $this->label = _x( 'Checkout', 'Settings tab label', 'woocommerce' ); |
|
29 | ||
30 | add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 ); |
|
31 | add_action( 'woocommerce_sections_' . $this->id, array( $this, 'output_sections' ) ); |
|
32 | add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) ); |
|
33 | add_action( 'woocommerce_admin_field_payment_gateways', array( $this, 'payment_gateways_setting' ) ); |
|
34 | add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) ); |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * Get sections. |
@@ 25-34 (lines=10) @@ | ||
22 | /** |
|
23 | * Constructor. |
|
24 | */ |
|
25 | public function __construct() { |
|
26 | $this->id = 'email'; |
|
27 | $this->label = __( 'Emails', 'woocommerce' ); |
|
28 | ||
29 | add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 ); |
|
30 | add_action( 'woocommerce_sections_' . $this->id, array( $this, 'output_sections' ) ); |
|
31 | add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) ); |
|
32 | add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) ); |
|
33 | add_action( 'woocommerce_admin_field_email_notification', array( $this, 'email_notification_setting' ) ); |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * Get sections. |