Updates
- Added the following properties to the lesson schema and response object:
drip_date,drip_days,drip_method,public,quiz. - Added the following links to lesson objects:
prerequisiteandquiz. - Use
WP_Error::$errorsin place ofWP_Error::has_errors()to support WordPress version prior to 5.1. - Added
llms_rest_lesson_item_schema,llms_rest_pre_insert_lesson,llms_rest_prepare_lesson_object_response,llms_rest_lesson_linksfilter hooks. - Course properties
access_opens_date,access_closes_date,enrollment_opens_date,enrollment_closes_dateare now nullable. - Course properties
prerequisiteandprerequisite_trackcan be be cleared (set to0to signify no prerequisite exists). - Added prerequisite validation for courses, if
prerequisiteis not a valid course the courseprerequisitewill be set to0and ifprerequisite_trackis not a valid course track, the courseprerequisite_trackwill be set to0.
Bug Fixes
- Fixed lesson
siblingslink that was using the parent course’s id instead of the parent section’s id. - Fixed lesson
parentlink href, replacing ‘section’ with ‘sections’. - Fixed lesson progression callback name when defining the filters to be removed while preparing the item for response.
- Fixed description of the
post_idpath parameter for student enrollments resources. Thanks @pondermatic. - Fixed section parent course object retrieval method when building the resource links.
