PluginProbe
Tiered Pricing Table for WooCommerce / trunk
Tiered Pricing Table for WooCommerce vtrunk
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 2.3.4 All 90 releases
tier-pricing-table / src / Integrations / Plugins / RankMath / Settings.php

Settings.php in Tiered Pricing Table for WooCommerce trunk, at src/Integrations/Plugins/RankMath/Settings.php

51 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\RankMath;
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 'Rank Math SEO';
10 }
11
12 public function getSlug(): string {
13 return 'rank_math';
14 }
15
16 public function getSettings(): array {
17 return array(
18 array(
19 'title' => 'Rank Math SEO',
20 'id' => \TierPricingTable\Settings\Settings::SETTINGS_PREFIX . '_subsection_' . $this->getSlug(),
21 'desc' => __( 'Configure the integration with Rank Math SEO 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 . 'rank_math_enable_variables',
28 'type' => TPTSwitchOption::FIELD_TYPE,
29 'default' => 'yes',
30 'extended_description' => __( '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 Rank Math SEO 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 . 'rank_math_enhance_schema',
36 'type' => TPTSwitchOption::FIELD_TYPE,
37 'default' => 'no',
38 'extended_description' => __( '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 }
51