LifterLMS REST API

LifterLMS REST API Version 1.0.0-beta.18

Updates
  • Added Access Plan resource and endpoint.
  • Provide a more significant error message when trying to delete an item without permissions.
  • Use WP_Http constants in favor of integers when referencing HTTP status codes.
Bug fixes
  • Fixes localization issues where a singular name was used in favor of the expected plural form.
  • Fixed issues where an error object was not properly returned when expected
  • Fixed call to undefined function llms_bad_request_error(), must be llms_rest_bad_request_error().
  • Fixed access plans resource link.
  • Fixed wrong trigger retrieved when multiple trigger were present for the same user/post pair on Student Enrollment resources.

LifterLMS REST API Version 1.0.0-beta.17

  • Bugfix: Fixed an issue with webhooks causing a failed webhook to cause other webhooks to stop triggering.
  • Update: Added improved localization methods when running as a standalone plugin.
Breaking Change
  • Method LLMS_REST_Webhook::is_pending() has been removed.
  • Database column pending_delivery on the lifterlms_rest_webhooks table (and related model properties) have been deprecated and scheduled for removal.

LifterLMS REST API Version 1.0.0-beta.14

Breaking Change
  • LLMS_REST_Controller::prepare_links() now requires a second parameter, the WP_REST_Request for the current request. Any classes extending and overwriting this method must adjust their method signature to accommodate this change.
Bug Fixes
  • Fix issue causing response objects to unintentionally include keys of remapped fields. This error occurs only when extending core controllers and attempting to exclude core fields.

LifterLMS REST API Version 1.0.0-beta.10

  • Added text domain to i18n functions that were missing the domain.
  • Fixed setting roles instead of appending them when updating user, thanks @pondermatic!
  • Added a “trigger” parameter to enrollment-related endpoints.
  • Added llms_rest_enrollments_item_schema, llms_rest_prepare_enrollment_object_response, llms_rest_enrollment_links filter hooks.
  • Fixed return when the enrollment to be deleted doesn’t exist, returns 204 instead of 404.
  • Fixed ‘context’ query parameter schema, thanks @pondermatic!