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
See also
- BP_Invitation::mark_accepted_by_data(): for a description of arguments.
Parameters
- $args.
-
(Required)
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
| 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.