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
- BP_Invitation::mark_accepted_by_data(): for a description of arguments.
Parameters Parameters
- $args.
-
(Required)
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' ) ); }
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |