bp_get_folder_folder_id()

Return the folder ID.

Description

Return

(int) The folder folder ID.

Source

File: bp-document/bp-document-template.php

1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
function bp_get_folder_folder_id() {
    global $document_folder_template;
 
    $id = 0;
    if ( isset( $document_folder_template ) && isset( $document_folder_template->folder ) && isset( $document_folder_template->folder->id ) ) {
        $id = $document_folder_template->folder->id;
    }
 
    /**
     * Filters the folder ID being displayed.
     *
     * @since BuddyBoss 1.4.0
     *
     * @param int $id The folder folder ID.
     */
    return apply_filters( 'bp_get_folder_folder_id', (int) $id );
}

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.