LifterLMS REST API

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!

LifterLMS REST API Version 1.0.0-beta.9

Updates
  • Added memberships controller, huge thanks to @pondermatic!

  • Added new filters:

  • llms_rest_lesson_filters_removed_for_response

  • llms_rest_course_item_schema

  • llms_rest_pre_insert_course

  • llms_rest_prepare_course_object_response

  • llms_rest_course_links

  • Improved validation when defining instructors for courses.

  • Improved performance on post collection listing functions.

Bug fixes
  • Ensure that a course instructor is always set for courses.
  • Fixed sales_page_url not returned in edit context.
  • In update_additional_object_fields() method, use WP_Error::$errors in place of WP_Error::has_errors() to support WordPress version prior to 5.1.

LifterLMS REST API Version 1.0.0-beta.8

  • Return links to those taxonomies which have an accessible rest route.
  • Initialize $prepared_item array before adding values to it. Thanks @pondermatic!
  • Fixed sales_page_type not returned as none if course’s sales_page_content_type property is empty.
  • Load webhook actions a little bit later, to avoid PHP warnings on first plugin activation.
  • Renamed sales_page_page_type and sales_page_page_url properties, respectively to sales_page_type and sales_page_url according to the specs.
  • Add missing quotes in enrollment/access default messages shortcodes.
  • Call set_bulk() llms post method passing true as second parameter, so to instruct it to return a WP_Error on failure.
  • Add missing quotes in enrollment/access default messages shortcodes.
  • sales_page_page_id and sales_page_url always returned in edit context.
  • Call set_bulk() llms post method passing true as second parameter, so to instruct it to return a WP_Error on failure.