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