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

1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
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

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.