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.


Top ↑

Return Return

(array)


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

Changelog
Version Description
1.0.0-beta.7
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.