PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 1.1.17
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v1.1.17
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / modules / flow / classes / class-cartflows-flow-loader.php

class-cartflows-flow-loader.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 1.1.17, at modules/flow/classes/class-cartflows-flow-loader.php

59 lines 1007 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Flow loader
4 *
5 * @package CartFlows
6 */
7
8 /**
9 * Initialization
10 *
11 * @since 1.0.0
12 */
13 class Cartflows_Flow_Loader {
14
15
16 /**
17 * Member Variable
18 *
19 * @var instance
20 */
21 private static $instance;
22
23 /**
24 * Initiator
25 */
26 public static function get_instance() {
27 if ( ! isset( self::$instance ) ) {
28 self::$instance = new self;
29 }
30 return self::$instance;
31 }
32
33 /**
34 * Constructor
35 */
36 public function __construct() {
37 $this->include_files();
38 }
39
40 /**
41 * Load classes.
42 *
43 * @since 1.0.0
44 *
45 * @return void
46 */
47 function include_files() {
48 require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-flow-post-type.php';
49 require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-step-post-type.php';
50 require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-step-post-meta.php';
51 require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-flow-shortcodes.php';
52 }
53 }
54
55 /**
56 * Kicking this off by calling 'get_instance()' method
57 */
58 Cartflows_Flow_Loader::get_instance();
59