PluginProbe
Tiered Pricing Table for WooCommerce / 7.1.5
Tiered Pricing Table for WooCommerce v7.1.5
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 / Integrations.php

Integrations.php in Tiered Pricing Table for WooCommerce 7.1.5, at src/Integrations/Integrations.php

101 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Integrations;
2
3 use TierPricingTable\Integrations\Plugins\AddifyRequestAQuote;
4 use TierPricingTable\Integrations\Plugins\AeliaMulticurrency;
5 use TierPricingTable\Integrations\Plugins\Curcy;
6 use TierPricingTable\Integrations\Plugins\DiscountRulesForWooCommerce;
7 use TierPricingTable\Integrations\Plugins\Elementor\ElementorIntegration;
8 use TierPricingTable\Integrations\Plugins\MixMatch;
9 use TierPricingTable\Integrations\Plugins\ProductBundles;
10 use TierPricingTable\Integrations\Plugins\RankMath\RankMath;
11 use TierPricingTable\Integrations\Plugins\SEOPress\SEOPress;
12 use TierPricingTable\Integrations\Plugins\WCCS;
13 use TierPricingTable\Integrations\Plugins\WCPA;
14 use TierPricingTable\Integrations\Plugins\WCPProductBundles;
15 use TierPricingTable\Integrations\Plugins\WooPaymentsMulticurrency;
16 use TierPricingTable\Integrations\Plugins\WombatProductAddons;
17 use TierPricingTable\Integrations\Plugins\WooCommerceDeposits;
18 use TierPricingTable\Integrations\Plugins\WooCommerceProductAddons;
19 use TierPricingTable\Integrations\Plugins\WooCommerceSubscriptions;
20 use TierPricingTable\Integrations\Plugins\WOOCS;
21 use TierPricingTable\Integrations\Plugins\WPAllImport;
22 use TierPricingTable\Integrations\Plugins\WPMLMulticurrency;
23 use TierPricingTable\Integrations\Plugins\WPMLMultilingual;
24 use TierPricingTable\Integrations\Plugins\YithMulticurrency;
25 use TierPricingTable\Integrations\Plugins\YithRequestAQuote;
26 use TierPricingTable\Integrations\Plugins\Yoast\Yoast;
27 use TierPricingTable\Integrations\Themes\Astra;
28 use TierPricingTable\Integrations\Themes\Avada;
29 use TierPricingTable\Integrations\Themes\Divi;
30 use TierPricingTable\Integrations\Themes\Flatsome;
31 use TierPricingTable\Integrations\Themes\Merchandiser;
32 use TierPricingTable\Integrations\Themes\OceanWp;
33 use TierPricingTable\Integrations\Themes\Shopkeeper;
34 use TierPricingTable\Integrations\Themes\TheRetailer;
35 use TierPricingTable\Integrations\Themes\Zakra;
36
37 class Integrations {
38
39 public function __construct() {
40 $this->init();
41 }
42
43 public function init() {
44 $themes = apply_filters( 'tiered_pricing_table/integrations/themes', array(
45 'avada' => Avada::class,
46 'astra' => Astra::class,
47 'divi' => Divi::class,
48 'oceanWP' => OceanWp::class,
49 'flatsome' => Flatsome::class,
50 'shopkeeper' => Shopkeeper::class,
51 'the retailer' => TheRetailer::class,
52 'merchandiser' => Merchandiser::class,
53 'zakra' => Zakra::class,
54 ) );
55
56 $plugins = apply_filters( 'tiered_pricing_table/integrations/plugins', array(
57 ElementorIntegration::class,
58 WPAllImport::class,
59 WooCommerceProductAddons::class,
60 WooCommerceSubscriptions::class,
61 ProductBundles::class,
62 WooCommerceDeposits::class,
63 WOOCS::class,
64 WCPA::class,
65 AeliaMulticurrency::class,
66 MixMatch::class,
67
68 WCCS::class,
69 WPMLMulticurrency::class,
70 WPMLMultilingual::class,
71 WooPaymentsMulticurrency::class,
72 YithMulticurrency::class,
73 YithRequestAQuote::class,
74 AddifyRequestAQuote::class,
75
76 WombatProductAddons::class,
77
78 DiscountRulesForWooCommerce::class,
79 Curcy::class,
80
81 WCPProductBundles::class,
82
83 Yoast::class,
84 RankMath::class,
85 SEOPress::class,
86 ) );
87
88 foreach ( $themes as $themeName => $theme ) {
89 if ( strpos( strtolower( wp_get_theme()->name ),
90 $themeName ) !== false || ( ! empty( wp_get_theme()->template ) && strpos( strtolower( wp_get_theme()->template ),
91 $themeName ) !== false ) ) {
92 new $theme();
93 }
94 }
95
96 foreach ( $plugins as $plugin ) {
97 new $plugin();
98 }
99 }
100 }
101