BP_Groups_Group::delete_all_invites( int $group_id )

Delete all invitations to a given group.


Parameters Parameters

$group_id

(int) (Required) ID of the group whose invitations are being deleted.


Top ↑

Return Return

(int|null) Number of rows records deleted on success, null on failure.


Source Source

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

	public static function delete_all_invites( $group_id ) {
		if ( empty( $group_id ) ) {
			return false;
		}

		$invites_class = new BP_Groups_Invitation_Manager();

		return $invites_class->delete( array(
			'item_id' => $group_id,
		) );
	}


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.