public static function activate($key) { $result = activate_signup($key); if (is_wp_error($result)) { throw new WPException($result); } $collection = static::$collection; $user = $collection::get(array('id' => $result['user_id'])); return $user; }