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

	protected function prepare_object_query_args( $student_id, $post_id ) {

		$args = array();

		$args['id']            = $student_id;
		$args['post']          = $post_id;
		$args['no_found_rows'] = true;
		$args['per_page']      = 1;

		$args = $this->prepare_items_query( $args );

		return $args;


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.