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
3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 | 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.