BP_Groups_Member::get_user_object()
Get the user object corresponding to this membership.
Description
Used for lazyloading the protected user
property.
Return
Source
File: bp-groups/classes/class-bp-groups-member.php
246 247 248 249 250 251 252 | protected function get_user_object() { if ( empty ( $this ->user ) ) { $this ->user = new BP_Core_User( $this ->user_id ); } return $this ->user; } |
Changelog
Version | Description |
---|---|
BuddyPress 2.8.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.