/** * Init all the classes * * @return void */ function init_classes() { if (is_admin()) { new Dokan_Admin_User_Profile(); Dokan_Admin_Ajax::init(); new Dokan_Upgrade(); } else { new Dokan_Pageviews(); } new Dokan_Rewrites(); Dokan_Email::init(); if (is_user_logged_in()) { Dokan_Template_Main::init(); Dokan_Template_Dashboard::init(); Dokan_Template_Products::init(); Dokan_Template_Orders::init(); Dokan_Template_Withdraw::init(); Dokan_Template_Shortcodes::init(); Dokan_Template_Settings::init(); } }
/** * Init all the classes * * @return void */ function init_classes() { if (is_admin()) { new Dokan_Admin_User_Profile(); Dokan_Admin_Ajax::init(); new Dokan_Announcement(); new Dokan_Update(); new Dokan_Upgrade(); } else { new Dokan_Pageviews(); } new Dokan_Rewrites(); Dokan_Email::init(); Dokan_Template_Shortcodes::init(); Dokan_Template_Shipping::init(); }