define_constants(); $this->setup_classes(); } /** * Include required classes. */ public function define_constants() { define( 'CARTFLOWS_ADMIN_CORE_DIR', CARTFLOWS_DIR . 'admin-core/' ); define( 'CARTFLOWS_ADMIN_CORE_URL', CARTFLOWS_URL . 'admin-core/' ); } /** * Include required classes. */ public function setup_classes() { /* Init API */ ApiInit::get_instance(); if ( is_admin() ) { StoreCheckout::get_instance(); /* Setup Menu */ AdminMenu::get_instance(); /* Ajax init */ AjaxInit::get_instance(); WizardAjaxInit::get_instance(); WizardCore::get_instance(); } } } Admin_Loader::get_instance();