BP_REST_Document_Endpoint::assemble_response_data( array|string $args )

Get documents.

Description

Parameters

$args

(array|string) (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

	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.