LLMS_REST_Enrollments_Controller::prepare_collection_items_for_response( array $objects, WP_REST_Request $request )
Prepare collection items for response.
Parameters Parameters
- $objects
-
(array) (Required) Array of objects to be prepared for response.
- $request
-
(WP_REST_Request) (Required) Full details about the request.
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-enrollments-controller.php
/** * Retrieve an array of objects from the result of $this->get_objects_query(). * * @since 1.0.0-beta.7 * * @param WP_Query $query Query result. * @return obj[] */ protected function get_objects_from_query( $query ) { return $query->items; } /** * Prepare collection items for response. * * @since 1.0.0-beta.7
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.7 | Introduced. |