Lesson
For loop type learndash_lesson
, here are the query parameters and fields.
Query parameters
completion_status
- Lesson completion status ('open', 'started', 'completed', 'locked')
Type: string, arraycourse
- Course ID or "current" for current course
Type: stringenrolled
- Current user is enrolled
Type: booleanvideo_exists
- Lesson video exists, true or false
Type: boolean
Fields
lesson_assignments_auto_approve
- Assignment grading type(Auto-approve, Manually grade)lesson_assignments_deletion
- Assignment deletion enabledlesson_assignments_enabled
- Is assignment enabledlesson_assignments_extensions
- Assignment file extensions limitlesson_assignments_form
- Renders Assignment upload form.lesson_assignments_points
- Assignment points enabledlesson_assignments_points_amount
- Assignment points amountlesson_assignments_size
- Assignment file size limitlesson_assignments_upload
- Assignment file uploads number limitlesson_drip_date
- Drip date - Optionally use "date_format" attributelesson_drip_date_future
- Drip date is in the future (after today)lesson_drip_date_past
- Drip date is in the past (before and including today)lesson_drip_date_timestamp
- Drip date timestamplesson_drip_enabled
- Lesson Drip enabled or notlesson_has_next_lesson
- Has next lessonlesson_has_previous_lesson
- Has previous lessonlesson_has_section
- If Lesson has a section(if it is a first lesson under a section) - boollesson_is_sample
- If the lesson is sample or notlesson_mark_complete
- Mark Complete buttonlesson_materials
- Lesson materialslesson_next_lesson_id
- Next lesson idlesson_next_lesson_link
- Next lesson linklesson_next_lesson_title
- Next lesson titlelesson_next_lesson_url
- Next lesson urllesson_next_step
- Next steplesson_next_step_id
- Next step Idlesson_next_step_title
- Next step Titlelesson_next_step_url
- Next step URLlesson_number_no_children
- Lesson Number relative to Course - NO Topics and Quizzes countedlesson_parent_course_id
- Lesson parent Course idlesson_parent_course_title
- Lesson parent Course Titlelesson_parent_course_url
- Lesson parent Course URLlesson_previous_lesson_id
- Previous lesson idlesson_previous_lesson_link
- Previous lesson linklesson_previous_lesson_title
- Previous lesson titlelesson_previous_lesson_url
- Previous lesson urllesson_previous_step
- Previous steplesson_previous_step_id
- Previous step Idlesson_previous_step_title
- Previous step Titlelesson_previous_step_url
- Previous step URLlesson_progress_completed
- Lesson completed steps - Quizzes not counted as stepslesson_progress_completed_q
- Lesson completed steps - Quizzes counted as stepslesson_progress_percent
- Lesson progress percent - Quizzes not counted as stepslesson_progress_percent_q
- Lesson progress percent - Quizzes counted as stepslesson_progress_status
- Progress status: open, started, completed, or lockedlesson_progress_status_label
- Progress status label: Not Started, In Progress, Completed, or Lockedlesson_progress_total
- Lesson total steps - Quizzes not counted as stepslesson_progress_total_q
- Lesson total steps - Quizzes counted as stepslesson_schedule
- Lesson schedule : After Course Enrollment - value "after_course_enrolled" / After Specific Date - value "after_specific_date"lesson_section_is_expanded
- If the section is expanded - boollesson_section_order
- Section orderlesson_section_title
- Section titlelesson_section_type
- Section typelesson_section_url
- Section URLlesson_step_number
- Lesson Step Number relative to Course - WITHOUT Quizzes countedlesson_step_number_q
- Lesson Step Number relative to Course - WITH Quizzes countedlesson_time_enabled
- If Forced time enabled or not.lesson_timer
- Display timer countdown.lesson_video
- Renders Video.lesson_video_auto_complete
- Mark the lesson as completed once the user has watched the full video.lesson_video_auto_complete_delay
- Delay between video completion and lesson completion.lesson_video_auto_start
- Video auto-start or not.lesson_video_enabled
- Video enabled or not.lesson_video_exist
- Video exists or not.lesson_video_focus_pause
- Pause the video if user switches to a different window..lesson_video_show_complete_button
- Display the Mark Complete button on a lesson even if not yet clickable.lesson_video_show_controls
- Show Video controls or not.lesson_video_shown
- Video available "before" or "after" completed sub-steps.lesson_video_track_time
- Allows user to resume video position.lesson_video_url
- Video URL.