BP_Groups_Invitation_Manager::mark_accepted( $args )

With group invitations, we don’t need to keep the old record, so we delete rather than mark invitations as “accepted.”


Description Description

See also See also


Top ↑

Parameters Parameters

$args.

(array) (Required)


Top ↑

Source Source

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

	public function mark_accepted( $args ) {
		// Delete all existing invitations/requests to this group for this user.
		$this->delete( array(
			'user_id' => $args['user_id'],
			'item_id' => $args['item_id'],
			'type'    => 'all'
		) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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