initialize_hooks(); } /** * Init Hooks. * * @since 1.0.0 * @return void */ public function initialize_hooks() { $this->register_all_ajax_events(); } /** * Register API routes. */ public function register_all_ajax_events() { $controllers = array( 'CartflowsAdmin\Wizard\Ajax\Wizard', ); foreach ( $controllers as $controller ) { $controller::get_instance()->register_ajax_events(); } } } WizardAjaxInit::get_instance();