bp_document_get_folder_attachment_ids( $folder_id )
Return all the document ids inside folder.
Description
Parameters
- $folder_id
-
(Required)
Return
(array|object|null)
Source
File: bp-document/bp-document-functions.php
function bp_document_get_folder_attachment_ids( $folder_id ) { global $bp, $wpdb; $table = $bp->document->table_name; $documents_attachment_query = $wpdb->prepare( "SELECT attachment_id FROM {$table} WHERE folder_id = %d", $folder_id ); $data = $wpdb->get_results( $documents_attachment_query ); // db call ok; no-cache ok; return $data; }
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.