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