bp_get_db_document_privacy()
Return the document privacy.
Description
Return
(string) The document privacy.
Source
File: bp-document/bp-document-template.php
2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 | function bp_get_db_document_privacy() { global $document_template , $document_folder_template ; $document_privacy = bp_document_get_visibility_levels(); if ( isset( $document_template ) && isset( $document_template ->document ) && isset( $document_template ->document->privacy ) ) { $db_document_privacy = $document_template ->document->privacy; } elseif ( isset( $document_folder_template ) && isset( $document_folder_template ->folder ) && isset( $document_folder_template ->folder->privacy ) ) { $db_document_privacy = $document_folder_template ->folder->privacy; } /** * Filters the document privacy being displayed. * * @since BuddyBoss 1.4.0 * * @param string The privacy. */ return apply_filters( 'bp_get_db_document_privacy' , $db_document_privacy ); } |
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.