BP_Groups_Member::demote()

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


Description Description


Return Return

(bool) True on success, false on failure.


Top ↑

Source 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();
	}

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.