BP_REST_Document_Endpoint::assemble_response_data( array|string $args )
Get documents.
Description
Parameters
- $args
-
(Required) All arguments and defaults are shared with BP_Document::get(), except for the following.
Return
(array)
Source
File: bp-document/classes/class-bp-rest-document-endpoint.php
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 | public function assemble_response_data( $args ) { // Fetch specific document items based on ID's. if ( isset( $args [ 'document_ids' ] ) && ! empty ( $args [ 'document_ids' ] ) ) { return bp_document_get_specific( $args ); // Fetch all activity items. } else { return bp_document_get( $args ); } } |
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.