LLMS_REST_Instructors_Controller::get_object( int $id )
Get object.
Parameters Parameters
- $id
-
(int) (Required) Object ID.
Return Return
(LLMS_Instructor|WP_Error)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-instructors-controller.php
protected function get_object( $id ) { $instructor = llms_get_instructor( $id ); return $instructor ? $instructor : llms_rest_not_found_error(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |