BP_Groups_Member::ban()
Ban the user from the group.
Description
Return
(bool) True on success, false on failure.
Source
File: bp-groups/classes/class-bp-groups-member.php
377 378 379 380 381 382 383 384 385 | public function ban() { if ( ! empty ( $this ->is_admin ) ) return false; $this ->is_mod = 0; $this ->is_banned = 1; return $this ->save(); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.6.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.