bp_get_group_member_is_banned()
Check if current group member is banned.
Description
Return
(mixed|void)
Source
File: bp-groups/bp-groups-template.php
function bp_get_group_member_is_banned() {
global $members_template;
/**
* Filters whether the member is banned from the current group.
*
* @since BuddyPress 1.0.0
*
* @param bool $is_banned Whether or not the member is banned.
*/
return apply_filters( 'bp_get_group_member_is_banned', $members_template->member->is_banned );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.0.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.