BP_Invitation_Manager::delete_all()

Delete all invitations by class.

Description

Used when clearing out invitations for an entire class. Possibly used when deactivating a component related to a class that created invitations.

Return

(int|bool) Number of rows deleted on success, false on failure.

Source

File: bp-core/classes/class-bp-invitation-manager.php

	public function delete_all() {
		return BP_Invitation::delete( array(
			'class' => $this->class_name,
		) );
	}

Changelog

Changelog
Version Description
BuddyBoss 1.3.5 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.