LLMS_REST_Enrollments_Controller::get_object( int $student_id, int $post_id = null )
Get object.
Parameters Parameters
- $student_id
-
(int) (Required) Student ID.
- $post_id
-
(int) (Optional) The course/membership ID.
Default value: null
Return Return
(object|WP_Error)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-enrollments-controller.php
} return true; } /** * Get object. * * @since 1.0.0-beta.1 * @since 1.0.0-beta.4 Fix call to undefined function llms_rest_bad_request(), * must be llms_rest_bad_request_error(). * * @param int $student_id Student ID. * @param int $post_id The course/membership ID. * @return object|WP_Error
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.4 | Fix call to undefined function llms_rest_bad_request(), must be llms_rest_bad_request_error(). |
1.0.0-beta.1 | Introduced. |