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

978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
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
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.