Skip to content

Commit a9fbe71

Browse files
authored
Merge pull request #273 from level-level/feature/get-biography-for-clarkson-user
add biography to clarkson user object
2 parents 39d600e + f75e90a commit a9fbe71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/WordPress_Object/Clarkson_User.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,15 @@ public function get_login() {
159159
return $this->get_user()->user_login;
160160
}
161161

162+
/**
163+
* Get the user's biography.
164+
*
165+
* @return string Biography.
166+
*/
167+
public function get_biography() {
168+
return $this->get_user()->description;
169+
}
170+
162171
/**
163172
* Get the user's roles.
164173
*

0 commit comments

Comments
 (0)