LLMS_REST_Enrollments_Controller::prepare_object_query_args( int $student_id, int $post_id )
Prepare enrollments objects query.
Parameters Parameters
- $student_id
-
(int) (Required) Student ID.
- $post_id
-
(int) (Required) The course/membership ID.
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-enrollments-controller.php
if ( $items ) { return $items[0]; } return llms_rest_not_found_error(); } /** * Prepare enrollments objects query. * * @since 1.0.0-beta.7 * @since 1.0.0-beta.10 Set query limit to 1. * * @param int $student_id Student ID.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.7 | |
1.0.0-beta.10 | Introduced. |