public static function bootstrap() { // Kill the defaults remove_action('bbp_new_reply', 'bbp_notify_subscribers', 11); if (is_admin()) { Falcon_Admin::bootstrap(); } try { // Check for a handler first self::$handler = self::get_handler(); // Then add our own hooks! self::register_hooks(); } catch (Exception $e) { add_action('all_admin_notices', function () use($e) { printf('<div class="error"><p>' . __('Problem setting up Falcon! %s', 'bbsub') . '</p></div>', $e->getMessage()); }); } foreach (self::get_available_connectors() as $key => $connector) { self::$connectors[$key] = new $connector(self::$handler); } }