bp_get_document_title()
Return the document title.
Description
Return
(int) The document title.
Source
File: bp-document/bp-document-template.php
function bp_get_document_title() { global $document_template, $document_folder_template; $title = ''; if ( isset( $document_template ) && isset( $document_template->document ) && isset( $document_template->document->title ) ) { $title = $document_template->document->title; } elseif ( isset( $document_folder_template ) && isset( $document_folder_template->folder ) && isset( $document_folder_template->folder->title ) ) { $title = $document_folder_template->folder->title; } /** * Filters the document title being displayed. * * @since BuddyBoss 1.4.0 * * @param int $id The document title. */ return apply_filters( 'bp_get_document_title', $title ); }
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.