BP_Invitation::mark_accepted( int $id )
Mark specific invitations as accepted by invitation ID.
Description
Parameters
- $id
-
(Required) The ID of the invitation to mark as sent.
Source
File: bp-core/classes/class-bp-invitation.php
public static function mark_accepted( $id = 0 ) {
if ( ! $id ) {
return false;
}
// Values to be updated
$update_args = array(
'accepted' => 'accepted',
);
// WHERE clauses
$where_args = array(
'id' => $id,
);
return self::update( $update_args, $where_args );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.2.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.