function _wdfb_initialize() { if (apply_filters('wdfb-core-is_admin', WDFB_CORE_IS_ADMIN)) { require_once WDFB_PLUGIN_BASE_DIR . '/lib/class_wdfb_admin_help.php'; require_once WDFB_PLUGIN_BASE_DIR . '/lib/class_wdfb_admin_form_renderer.php'; require_once WDFB_PLUGIN_BASE_DIR . '/lib/class_wdfb_admin_pages.php'; require_once WDFB_PLUGIN_BASE_DIR . '/lib/class_wdfb_tutorial.php'; Wdfb_Tutorial::serve(); Wdfb_AdminPages::serve(); } else { require_once WDFB_PLUGIN_BASE_DIR . '/lib/class_wdfb_public_pages.php'; Wdfb_PublicPages::serve(); } require_once WDFB_PLUGIN_BASE_DIR . '/lib/class_wdfb_universal_worker.php'; Wdfb_UniversalWorker::serve(); }
/** * Main entry point. * * @static */ public static function serve() { $me = new Wdfb_PublicPages(); $me->add_hooks(); }