LLMS_REST_Enrollments_Controller::get_item( WP_REST_Request $request )
Get a single item.
Parameters Parameters
- $request
-
(WP_REST_Request) (Required) Full details about the request.
Return Return
(WP_Error|WP_REST_Response)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-enrollments-controller.php
public function get_item( $request ) { $object = $this->get_object( (int) $request['id'], (int) $request['post_id'] ); if ( is_wp_error( $object ) ) { return $object; } $response = $this->prepare_item_for_response( $object, $request ); return $response; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |