PluginProbe
Tiered Pricing Table for WooCommerce / 7.1.1
Tiered Pricing Table for WooCommerce v7.1.1
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / src / Settings / Sections / GeneralSection / Subsections / HiddenOptionsSubsection.php

HiddenOptionsSubsection.php in Tiered Pricing Table for WooCommerce 7.1.1, at src/Settings/Sections/GeneralSection/Subsections/HiddenOptionsSubsection.php

47 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Settings\Sections\GeneralSection\Subsections;
2
3 use TierPricingTable\Settings\Sections\SubsectionAbstract;
4 use TierPricingTable\Settings\Settings;
5
6 class HiddenOptionsSubsection extends SubsectionAbstract {
7
8 public function getTitle(): string {
9 return '';
10 }
11
12 public function getDescription(): string {
13 return 'hidden_options';
14 }
15
16 public function getSlug(): string {
17 return 'hidden_options';
18 }
19
20 protected function getCustomAttributes() {
21 return array(
22 'tpt_hidden_option' => 'tpt_hidden_option',
23 );
24 }
25
26 public function getSettings(): array {
27 return array(
28 // Hidden fields
29 array(
30 'id' => Settings::SETTINGS_PREFIX . 'head_quantity_text',
31 'row_class' => 'tpt_hidden_option',
32 'type' => 'text',
33 ),
34 array(
35 'id' => Settings::SETTINGS_PREFIX . 'head_price_text',
36 'row_class' => 'tpt_hidden_option',
37 'type' => 'text',
38 ),
39 array(
40 'id' => Settings::SETTINGS_PREFIX . 'head_discount_text',
41 'row_class' => 'tpt_hidden_option',
42 'type' => 'text',
43 ),
44 );
45 }
46 }
47