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


Top ↑

Return Return

(object|WP_Error)


Top ↑

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


Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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