BP_Groups_Member::__get( string $key )
Magic getter.
Description
Parameters
- $key
-
(Required) Key.
Return
(BP_Core_User|null)
Source
File: bp-groups/classes/class-bp-groups-member.php
public function __get( $key ) { switch ( $key ) { case 'user' : return $this->get_user_object( $this->user_id ); } }
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.