tier-pricing-table
/
src
/
Settings
/
Sections
/
GeneralSection
/
Subsections
/
HiddenOptionsSubsection.php
HiddenOptionsSubsection.php in Tiered Pricing Table for WooCommerce 6.1.0, at src/Settings/Sections/GeneralSection/Subsections/HiddenOptionsSubsection.php
| 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 |