PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
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 / optin / class-cartflows-optin.php

class-cartflows-optin.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/optin/class-cartflows-optin.php

54 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Checkout
4 *
5 * @package Woo Funnel Cart
6 */
7
8 // Exit if accessed directly.
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12 define( 'CARTFLOWS_OPTIN_DIR', CARTFLOWS_DIR . 'modules/optin/' );
13 define( 'CARTFLOWS_OPTIN_URL', CARTFLOWS_URL . 'modules/optin/' );
14
15 /**
16 * Initial Setup
17 *
18 * @since 1.0.0
19 */
20 class Cartflows_Optin {
21
22
23 /**
24 * Member Variable
25 *
26 * @var object instance
27 */
28 private static $instance;
29
30 /**
31 * Initiator
32 */
33 public static function get_instance() {
34 if ( ! isset( self::$instance ) ) {
35 self::$instance = new self();
36 }
37 return self::$instance;
38 }
39
40 /**
41 * Constructor function that initializes required actions and hooks
42 */
43 public function __construct() {
44
45 require_once CARTFLOWS_OPTIN_DIR . 'classes/class-cartflows-optin-meta-data.php';
46 require_once CARTFLOWS_OPTIN_DIR . 'classes/class-cartflows-optin-markup.php';
47 require_once CARTFLOWS_OPTIN_DIR . 'classes/class-cartflows-optin-fields.php';
48 }
49 }
50 /**
51 * Kicking this off by calling 'get_instance()' method
52 */
53 Cartflows_Optin::get_instance();
54