/** * @param $wpNeedsObj * * @return mixed */ private function insertUser($wpNeedsObj) { $id = User::register($wpNeedsObj); return $id; }
/** * @param $id * @return bool|\WP_User */ public function getRegisteredUser($id) { return User::findUserById($id); }