BP_Invitation::mark_sent( int $id, array $args = array() )
Mark specific invitations as sent by invitation ID.
Description Description
Parameters Parameters
- $id
-
(Required) The ID of the invitation to mark as sent.
- $args
-
(Optional) Invitation characteristics used to override certain sending behaviors.
- 'date_modified'
(string) Modified time in 'Y-m-d h:i:s' format, GMT. Defaults to current time if not specified.
Default value: array()
- 'date_modified'
Return Return
(int|bool) The number of rows updated, or false on error.
Source 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 Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |