LLMS_REST_Enrollments_Controller::prepare_object_query_args( int $student_id, int $post_id )

Prepare enrollments objects query.

Parameters Parameters


(int) (Required) Student ID.


(int) (Required) The course/membership ID.

Top ↑

Return Return


Top ↑

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.

Top ↑

Changelog Changelog

Version Description
1.0.0-beta.10 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.