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 / wizard / ajax / wizard-ajax-init.php

wizard-ajax-init.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.1.3, at wizard/ajax/wizard-ajax-init.php

79 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * CartFlows Ajax Initialize.
4 *
5 * @package CartFlows
6 */
7
8 namespace CartflowsAdmin\Wizard\Ajax;
9
10 // Exit if accessed directly.
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit;
13 }
14
15 /**
16 * Class Admin_Init.
17 */
18 class WizardAjaxInit {
19
20 /**
21 * Instance
22 *
23 * @access private
24 * @var object Class object.
25 * @since 1.0.0
26 */
27 private static $instance;
28
29 /**
30 * Initiator
31 *
32 * @since 1.0.0
33 * @return object initialized object of class.
34 */
35 public static function get_instance() {
36 if ( ! isset( self::$instance ) ) {
37 self::$instance = new self();
38 }
39 return self::$instance;
40 }
41
42 /**
43 * Constructor
44 *
45 * @since 1.0.0
46 */
47 public function __construct() {
48
49 $this->initialize_hooks();
50 }
51
52 /**
53 * Init Hooks.
54 *
55 * @since 1.0.0
56 * @return void
57 */
58 public function initialize_hooks() {
59
60 $this->register_all_ajax_events();
61 }
62
63 /**
64 * Register API routes.
65 */
66 public function register_all_ajax_events() {
67
68 $controllers = array(
69 'CartflowsAdmin\Wizard\Ajax\Wizard',
70 );
71
72 foreach ( $controllers as $controller ) {
73 $controller::get_instance()->register_ajax_events();
74 }
75 }
76 }
77
78 WizardAjaxInit::get_instance();
79