PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.1
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.1
3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 2.8.17 2.8.18 All 259 releases
wpfunnels / includes / core / compatibility / plugin / class-wpfnl-plugin-compatible.php

class-wpfnl-plugin-compatible.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 3.13.1, at includes/core/compatibility/plugin/class-wpfnl-plugin-compatible.php

94 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Theme Compatibility
4 *
5 * @package WPFunnels\Compatibility\Plugin
6 */
7 namespace WPFunnels\Compatibility\Plugin;
8
9 use WPFunnels\Wpfnl_functions;
10 use WPFunnels\Traits\SingletonTrait;
11
12
13 class Wpfnl_Plugin_Compatibility {
14
15
16 /**
17 * Init all supported theme class
18 *
19 */
20 public function init_classes(){
21 $plugins = $this->get_all_compatible_plugins();
22 if( is_array( $plugins ) ){
23 foreach( $plugins as $plugin ){
24 if( isset( $plugin['class_name'] ) ){
25 $class_name = "WPFunnels\\Compatibility\\Plugin\\".$plugin['class_name'];
26 if (class_exists(ucfirst($class_name))) {
27 if( $class_name::getInstance()->maybe_activate() ){
28 $class_name::getInstance()->init();
29 }
30 }
31 }
32 }
33 }
34 }
35
36
37
38 /**
39 * List of compatible plugins
40 *
41 * @since 2.7.7
42 * @return Array
43 */
44 public function get_all_compatible_plugins(){
45 $plugins = [
46 [
47 'name' => 'Cart Lift',
48 'class_name' => 'CartLift'
49 ],
50 [
51 'name' => 'Slim Seo',
52 'class_name' => 'SlimSeo'
53 ],
54 [
55 'name' => 'Electro Extension',
56 'class_name' => 'ElectroExtension'
57 ],
58 [
59 'name' => 'WooCommerce Multilingual',
60 'class_name' => 'Wcml'
61 ],
62 [
63 'name' => 'Product Addon',
64 'class_name' => 'ProductAddon'
65 ],
66 [
67 'name' => 'Astra Pro',
68 'class_name' => 'AstraPro'
69 ],
70 [
71 'name' => 'Elementor Pro',
72 'class_name' => 'ElementorPro'
73 ],
74 [
75 'name' => 'Tutor LMS',
76 'class_name' => 'Tutor'
77 ],
78 [
79 'name' => 'Google Site Kit',
80 'class_name' => 'GoogleSiteKit'
81 ],
82 [
83 'name' => 'Fox Currency Switcher',
84 'class_name' => 'FoxCurrencySwitcher'
85 ],
86 [
87 'name' => 'WooCommerce Germanized',
88 'class_name' => 'WooCommerceGermanized'
89 ]
90 ];
91 return $plugins;
92 }
93 }
94