コード例 #1
0
        {
            return false;
        }
    }
}
define('APP_PLUGIN_DIR', dirname(__FILE__), true);
define('APP_PLUGIN_FILE', __FILE__, true);
require_once APP_PLUGIN_DIR . '/includes/default_filters.php';
require_once APP_PLUGIN_DIR . '/includes/class_app_install.php';
require_once APP_PLUGIN_DIR . '/includes/class_app_timed_abstractions.php';
require_once APP_PLUGIN_DIR . '/includes/class_app_roles.php';
require_once APP_PLUGIN_DIR . '/includes/class_app_codec.php';
require_once APP_PLUGIN_DIR . '/includes/class_app_shortcodes.php';
require_once APP_PLUGIN_DIR . '/includes/class_app_addon_helper.php';
App_Installer::serve();
App_AddonHandler::serve();
App_Shortcodes::serve();
global $appointments;
$appointments = new Appointments();
if (is_admin()) {
    require_once APP_PLUGIN_DIR . '/includes/support/class_app_tutorial.php';
    App_Tutorial::serve();
    require_once APP_PLUGIN_DIR . '/includes/support/class_app_admin_help.php';
    App_AdminHelp::serve();
    // Setup dashboard notices
    if (file_exists(APP_PLUGIN_DIR . '/includes/wpmudev-dash-notification.php')) {
        global $wpmudev_notices;
        if (!is_array($wpmudev_notices)) {
            $wpmudev_notices = array();
        }
        $wpmudev_notices[] = array('id' => 679841, 'name' => 'Appointments+', 'screens' => array('appointments_page_app_settings', 'appointments_page_app_shortcodes', 'appointments_page_app_faq'));
コード例 #2
0
 public static function serve()
 {
     $me = new App_AddonHandler();
     $me->_add_hooks();
 }