BP_Document_Folder::__construct( int|bool $id = false )

Constructor method.

Description

Parameters

$id

(Optional) The ID of a specific document folder.

Default value: false

Source

File: bp-document/classes/class-bp-document-folder.php

120
121
122
123
124
125
126
127
128
function __construct( $id = false ) {
    // Instantiate errors object.
    $this->errors = new WP_Error();
 
    if ( ! empty( $id ) ) {
        $this->id = (int) $id;
        $this->populate();
    }
}

Changelog

Changelog
Version Description
BuddyBoss 1.4.0 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.