bp_get_folder_title()

Return the folder title.

Description

Return

(string) The document folder title.

Source

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

1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
function bp_get_folder_title() {
    global $document_template, $document_folder_template;
 
    if ( isset( $document_template ) && isset( $document_template->document ) && isset( $document_template->document->title ) ) {
        $title = $document_template->document->title;
    } else {
        $title = $document_folder_template->folder->title;
    }
 
    /**
     * Filters the folder title being displayed.
     *
     * @since BuddyBoss 1.4.0
     *
     * @param int $id The document folder title.
     */
    return apply_filters( 'bp_get_folder_title', $title );
}

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.