public static function register_auth_ajax($name, $fn) { Plugins::register($fn, 'action', 'auth_ajax_' . $name); }