BP_Invitation::__construct( int $id )

Constructor method.

Description

Parameters

$id

(Optional) Provide an ID to access an existing invitation item.

Source

File: bp-core/classes/class-bp-invitation.php

145
146
147
148
149
150
public function __construct( $id = 0 ) {
    if ( ! empty( $id ) ) {
        $this->id = (int) $id;
        $this->populate();
    }
}

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.