PluginProbe
Tiered Pricing Table for WooCommerce / 6.4.0
Tiered Pricing Table for WooCommerce v6.4.0
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 / Integrations / Plugins / SEOPress / Settings.php

Settings.php in Tiered Pricing Table for WooCommerce 6.4.0, at src/Integrations/Plugins/SEOPress/Settings.php

50 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Integrations\Plugins\SEOPress;
2
3 use TierPricingTable\Settings\CustomOptions\TPTSwitchOption;
4 use TierPricingTable\Settings\Sections\SectionAbstract;
5
6 class Settings extends SectionAbstract {
7
8 public function getName(): string {
9 return __( 'SEOPress', 'tier-pricing-table' );
10 }
11
12 public function getSlug(): string {
13 return 'seopress';
14 }
15
16 public function getSettings(): array {
17 return array(
18 array(
19 'title' => __( 'SEOPress', 'tier-pricing-table' ),
20 'id' => \TierPricingTable\Settings\Settings::SETTINGS_PREFIX . '_subsection_' . $this->getSlug(),
21 'desc' => __( 'Configure the integration with SEOPress plugin to use tiered pricing variables in your SEO metadata.',
22 'tier-pricing-table' ),
23 'type' => 'title',
24 ),
25 array(
26 'title' => __( 'Enable custom variables', 'tier-pricing-table' ),
27 'id' => \TierPricingTable\Settings\Settings::SETTINGS_PREFIX . 'seopress_enable_variables',
28 'type' => TPTSwitchOption::FIELD_TYPE,
29 'default' => 'yes',
30 'desc' => __( 'Enable you to use the %%lowest_price%% and %%price_range%% variables to display the lowest price and price range of products with tiered pricing in SEOPress metadata.',
31 'tier-pricing-table' ),
32 ),
33 array(
34 'title' => __( 'Enhance product schema with tiered pricing offers', 'tier-pricing-table' ),
35 'id' => \TierPricingTable\Settings\Settings::SETTINGS_PREFIX . 'seopress_enhance_schema',
36 'type' => TPTSwitchOption::FIELD_TYPE,
37 'default' => 'no',
38 'desc' => __( 'Enhance the product schema with tiered pricing offers. Adds an offer for each tier and the lowest price as the main offer.',
39 'tier-pricing-table' ),
40 ),
41 array(
42 'type' => 'sectionend',
43 ),
44 );
45 }
46
47 public function isIntegration(): bool {
48 return true;
49 }
50 }