BP_Groups_Member::ban()

Ban the user from the group.


Return Return

(bool) True on success, false on failure.


Source Source

File: bp-groups/classes/class-bp-groups-member.php

	public function ban() {
		if ( !empty( $this->is_admin ) )
			return false;

		$this->is_mod = 0;
		$this->is_banned = 1;

		return $this->save();
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.