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