PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.3
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.3
3.13.3 3.13.2 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 All 261 releases
wpfunnels / includes / core / widgets / divi-modules / class-manager.php

class-manager.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 3.13.3, at includes/core/widgets/divi-modules/class-manager.php

43 lines 725 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Divi manager
4 *
5 * @package
6 */
7 namespace WPFunnels\Widgets\DiviModules;
8
9 use function cli\err;
10
11 final class Manager {
12
13 private static $_instance = null;
14
15 public static function instance()
16 {
17 if (is_null(self::$_instance)) {
18 self::$_instance = new self();
19 }
20 return self::$_instance;
21 }
22
23
24 public function __construct()
25 {
26 $this->init();
27 new Wpfnl_Divi_Editor();
28 }
29
30 /**
31 * Initialize divi modules
32 */
33 private function init() {
34 add_action( 'divi_extensions_init', array( $this, 'wpfnl_initialize_extension' ) );
35 }
36
37
38 public function wpfnl_initialize_extension() {
39 WPFNL_DiviModules::get_instance();
40 }
41
42 }
43