BP_Groups_Member::demote()

Demote membership to Member status (non-admin, non-mod).

Description

Return

(bool) True on success, false on failure.

Source

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

	public function demote() {
		$this->is_mod     = 0;
		$this->is_admin   = 0;
		$this->user_title = false;

		return $this->save();
	}

Changelog

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.