BP_Groups_Group::get_is_member()
Checks whether the logged-in user is a member of the group.
Description
Return
(bool|int)
Source
File: bp-groups/classes/class-bp-groups-group.php
protected function get_is_member() {
if ( isset( $this->is_member ) ) {
return $this->is_member;
}
$this->is_member = groups_is_user_member( bp_loggedin_user_id(), $this->id );
return $this->is_member;
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.7.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.