PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.1.3
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.1.3
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 3.1.3, at modules/flow/classes/class-cartflows-flow-loader.php

63 lines 1000 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 // Exit if accessed directly.
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12 /**
13 * Initialization
14 *
15 * @since 1.0.0
16 */
17 class Cartflows_Flow_Loader {
18
19
20 /**
21 * Member Variable
22 *
23 * @var instance
24 */
25 private static $instance;
26
27 /**
28 * Initiator
29 */
30 public static function get_instance() {
31 if ( ! isset( self::$instance ) ) {
32 self::$instance = new self();
33 }
34 return self::$instance;
35 }
36
37 /**
38 * Constructor
39 */
40 public function __construct() {
41 $this->include_files();
42 }
43
44 /**
45 * Load classes.
46 *
47 * @since 1.0.0
48 *
49 * @return void
50 */
51 public function include_files() {
52
53 require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-flow-post-type.php';
54 require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-step-post-type.php';
55 require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-permalink.php';
56 }
57 }
58
59 /**
60 * Kicking this off by calling 'get_instance()' method
61 */
62 Cartflows_Flow_Loader::get_instance();
63