BP_REST_Document_Folder_Endpoint::assemble_response_data( array|string $args )
Get document folders.
Description
Parameters
- $args
-
(Required) All arguments and defaults are shared with BP_Document_Folder::get(), except for the following.
Return
(array)
Source
File: bp-document/classes/class-bp-rest-document-folder-endpoint.php
public function assemble_response_data( $args ) { // Fetch specific document items based on ID's. if ( isset( $args['folder_ids'] ) && ! empty( $args['folder_ids'] ) ) { return bp_folder_get_specific( $args ); // Fetch all activity items. } else { return bp_folder_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.