🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

LearnDash Course Flow Automation Add-on Setup Guide

Updated 11 min read LearnDash Membership & Courses
On this page
  1. Step 1: Install and Activate Your License
  2. Step 2: The Rules Screen
  3. Step 3: Add a Rule
  4. Step 4: Complete Steps Automatically
  5. Complete a step when it is opened
  6. Complete a step after time on the page
  7. Complete a step after watching the video
  8. Step 5: Let a Quiz Result Open the Next Step
  9. Step 6: Let Learners Move On After Failed Attempts
  10. Step 7: Complete the Course With the Final Exam
  11. Step 8: Enrol in the Next Course
  12. Step 9: Release Lessons on a Schedule
  13. Step 10: Remind Learners Who Stopped
  14. Step 11: Test a Learner
  15. Step 12: The Activity Log
  16. Step 13: Settings
  17. Step 14: WP-CLI
  18. Security and Privacy
  19. Troubleshooting
  20. A step was not completed
  21. The time or video notice does not show
  22. Reminders are not sent
  23. Frequently Asked Questions
  24. Does it change LearnDash data?
  25. Can rules conflict?
  26. Does it slow down lessons?

Course Flow Automation for LearnDash adds rules that move learners through your courses without you clicking anything: lessons and topics complete themselves when they are opened, read or watched, a quiz score can open the next step, learners who keep failing a quiz can continue after a set number of tries, the final exam completes the course, the next course is enrolled automatically, lessons are released on a schedule and learners who stopped get a friendly reminder. This guide walks through every rule type, the “Test a learner” tool, the activity log, the settings and the WP-CLI command.

System Requirements & Prerequisites

  • WordPress: Version 6.2 or higher
  • PHP: Version 7.4 or higher (tested on 7.4 and 8.3)
  • LearnDash LMS: Version 4.0 or higher, with courses, lessons, topics, quizzes and groups
  • WP-Cron: enabled or replaced by a real cron job, for the daily reminder run
  • License: an active GravityExtra license key for reminder and notice e-mails, the WP-CLI command and updates

Step 1: Install and Activate Your License

  1. Download the add-on zip from your GravityExtra account and go to Plugins → Add New → Upload Plugin.
  2. Upload the zip, click Install Now and then Activate. LearnDash LMS must be active.
  3. Open LearnDash LMS → Course Flow → License, paste your key and click Activate License.

Without an active key your rules still run, so a learner’s path never breaks when a license lapses. Only the e-mails (reminders and notices), the WP-CLI command and updates pause until the key is active again.

Step 2: The Rules Screen

Open LearnDash LMS → Course Flow. The Rules tab lists every rule with its status, the course and group it applies to, and a plain-language sentence of what it does. Use the Course filter to see only the rules that affect one course; rules set to “Any course” are always included. Each row has Edit, Turn off, Copy and Delete. A copy starts turned off, so you can adjust it before it runs.

The Course Flow rules screen under LearnDash LMS: a course filter, an Add rule button and a table of thirteen rules with status, rule name and type, course, group and a sentence of what each rule does, for example lessons complete when opened, topics need 12 seconds, first aid clip watched, a failed fire safety check with 60 percent is enough to continue, move on after 3 failed tries, the final exam closes the course, then enrol in Advanced Customer Care, weekly lesson releases and a reminder for quiet learners
LearnDash LMS → Course Flow: every rule with its course, group and a plain-language summary.

Step 3: Add a Rule

Click Add rule. Choose what should happen in When this happens; the form then shows only the fields that rule type needs. Every rule has the same four basics:

  • Rule name — your own label. Leave it empty and the type name is used.
  • Course — one course, or “Any course” for step, quiz and reminder rules. Final exam, next course and release schedules always need one course.
  • Only for group — limit the rule to the members of one LearnDash group. This is how you give a corporate client a different path through the same course.
  • Status — a rule that is off is kept but never runs.
The Add rule form: When this happens set to Complete a step when it is opened, a rule name, the course Workplace Safety Basics, Only for group set to everyone, Lessons ticked, a list of the course steps with two lessons ticked, exceptions for steps with a quiz or an assignment upload, and the Rule is on checkbox
Adding a rule: the form shows only the fields that the chosen rule type needs.

Step 4: Complete Steps Automatically

Three rule types complete lessons and topics for the learner. They all use LearnDash’s own completion function, so progress bars, course completion, certificates and anything else that listens to LearnDash work as if the learner had clicked Mark Complete.

Complete a step when it is opened

The lesson or topic is completed the moment an enrolled learner opens it. Good for reading material, welcome lessons and resource pages. A step that LearnDash would not show yet — because the previous step is not finished in a linear course, or because the lesson is not released yet — is not completed.

Complete a step after time on the page

Set the number of seconds. A small notice on the lesson shows how much time is left, and when the time is reached the step completes and a Continue button links to the next step. Only time while the page is visible counts, and counting stops after three idle minutes unless a video is playing. The site checks every report against the clock, so a page cannot claim more time than it was really open.

Complete a step after watching the video

Set the share of the video that must be watched, for example 90%. The add-on counts the seconds that were really played, so jumping to the end does not count. It works with video and audio files placed in the lesson and with YouTube and Vimeo embeds. The reported progress may grow only as fast as the video can play.

Choosing the steps

  • Tick Lessons, Topics or both.
  • With one course chosen you can tick single steps under Only these steps; leave all unticked to cover every step of the chosen kinds.
  • Skip steps that have a quiz (on by default): the quiz completes those steps, not the visit.
  • Skip steps that need an assignment upload (on by default): the assignment stays required.

Step 5: Let a Quiz Result Open the Next Step

The Quiz result unlocks the next step rule completes the lesson or topic a quiz belongs to, so the next step opens. Choose the quiz (or any quiz in the course), the result — Passed, Failed or Passed or failed — and an optional lowest score.

  • Passed — make sure a passed quiz always completes its lesson, even when the lesson has topics the learner skipped.
  • Failed, lowest score 60% — the pass mark stays 80% for the certificate, but learners with 60% or more may continue. The quiz history keeps the real score.
  • Passed or failed, lowest score 0 — a practice quiz that only has to be taken.

Count the quiz as passed in LearnDash too is needed for failed results, because LearnDash only completes a lesson once its quizzes are passed. The add-on adds a manual pass entry, the same kind an administrator creates when marking a quiz complete in a user profile, and logs the real score next to it.

Step 6: Let Learners Move On After Failed Attempts

Learners who fail the same quiz again and again often give up. With Let learners move on after failed attempts you set the number of failed attempts, for example 3. After the third failed attempt the quiz counts as done, its lesson or topic completes and the learner can continue. Attempts made after a pass are not counted, and each learner is let through only once per quiz.

Tick E-mail the notice addresses and E-mail the learner’s group leaders to be told who it was. The e-mail names the learner, the quiz, the course and the rule, with links to the learner’s profile and their activity log, so you can offer help.

Step 7: Complete the Course With the Final Exam

Choose the course and its final exam quiz. When a learner passes it — with an optional extra lowest score, for example 85% — every remaining lesson and topic is completed and the course is completed. Count the other quizzes of the course as passed is needed when the course has practice quizzes, because LearnDash completes a course only when all of its quizzes are passed. Certificates and completion e-mails that LearnDash sends on course completion follow as usual.

Step 8: Enrol in the Next Course

Choose the course and one or more courses to enrol in when it is completed. Learners are enrolled once; if you later remove their access to the next course, the rule does not add it back. Together with the final exam rule this turns separate courses into a learning path: pass the exam of part one, start part two the same minute.

Step 9: Release Lessons on a Schedule

The Release lessons on a schedule rule gives each lesson of the course a release time. Choose one of three schedules:

  • Days after enrolment in the course — 0 = right away, 7 = one week after the learner got access.
  • Days after joining the group above — counts from the day the learner joined the rule’s group, so each new cohort starts on day 0.
  • Fixed dates — a date and time in your site’s time zone, for live cohorts that move together.

Leave a lesson empty to keep LearnDash’s own setting for it. The add-on uses LearnDash’s lesson release check, so learners see LearnDash’s normal “available on” message, and the topics and quizzes of the lesson open with it. When several schedules apply, the latest release time wins. With Settings → Release schedules on, administrators and group leaders see scheduled lessons right away.

Step 10: Remind Learners Who Stopped

Remind learners who stopped e-mails enrolled learners who have not finished the course and have made no progress for the number of days you set. You choose the wait between reminders and the most reminders per quiet stretch; when the learner makes progress again the count starts over. The message supports placeholders: {first_name}, {display_name}, {course}, {next_step}, {continue_url}, {days} and {site_name}. Every reminder ends with a link that stops reminders for that course; it works without logging in.

Reminders go out once a day at the hour chosen in Settings, at most the number of e-mails per run you set; learners not reached are reminded the next day. Administrators and group leaders never get reminders.

Step 11: Test a Learner

The Test a learner tab answers the question “why did nothing happen?”. Enter a learner’s ID, user name or e-mail and pick a course. Every rule of the course is listed with its result: Would run now with the exact actions, Scheduled with release dates or the next reminder, or Nothing to do with the reason — not in the rule’s group, score below the minimum, not enough failed attempts, waiting for the learner, already done. Nothing changes until you click Run the due actions now.

The Test a learner tab for the learner Ana Lopes in the course Workplace Safety Basics: each rule is listed with a result badge and the reason, such as waits for the learner to open the next step, the learner is not in the group of this rule, the score is below the rule’s minimum and no quiz attempt yet; one rule shows Would run now with the actions count Fire Safety Check as passed and complete Fire Safety, and a button Run the due actions now
Test a learner: what every rule would do right now, and why.

This is also how you apply a new rule to learners who already qualified before the rule existed, for example learners who passed the final exam last month.

Step 12: The Activity Log

Every action a rule takes is logged: steps completed, quizzes counted as passed, courses completed, enrolments, notices and reminders sent or paused, opt-outs and rule changes. Each row shows when, the learner, the course, the step or quiz, the rule, a note such as the real quiz score, and what started it — a LearnDash event, the page tracker, an administrator, WP-CLI or the daily run. Filter by course, rule type and what happened; click a learner to see only their rows. Old rows are deleted after the number of days set in Settings.

Step 13: Settings

  • Notice e-mails go to — addresses for failed-attempt notices; empty = the site administrator address.
  • Daily reminder run — the hour (site time) and the most e-mails per run.
  • Release schedules — let administrators and group leaders see scheduled lessons right away.
  • Tracker interval — how often an open lesson reports time and video progress (15 seconds by default).
  • Keep the activity log — days before old rows are deleted.

Step 14: WP-CLI

Re-evaluate a learner after adding or changing rules, or as part of an import script:

  • wp ld-course-flow evaluate 42 --by=id --dry-run — show what would happen for user 42 in all their courses.
  • wp ld-course-flow evaluate jane --by=login --course=118 — carry out the due actions in one course.
  • wp ld-course-flow rules --course=118 — list the rules that apply to a course.
  • wp ld-course-flow reminders --dry-run — count the reminders that are due now.

Use --by=id, --by=login or --by=email to say how to read the user; without it a number is read as an ID first. Results print as a table, JSON or CSV with --format.

Security and Privacy

  • Only administrators (the manage_options capability) can see or change rules, the test tool, the log and the settings. Every change needs a valid nonce.
  • The tracker accepts reports only from logged-in learners with a valid REST nonce, only for steps they are enrolled in and allowed to open, and caps every report by the clock.
  • Opt-out links are signed per learner and course; a changed link is refused.
  • No data leaves your site except the e-mails you configure and the GravityExtra license and update checks.

Troubleshooting

A step was not completed

Open Test a learner for that learner and course. The reason is shown next to each rule. Common reasons: the step has a quiz or an assignment and the rule skips such steps; the previous step is not finished in a linear course; the lesson is not released yet; the learner is not in the rule’s group.

The time or video notice does not show

The tracker loads only for logged-in, enrolled learners on lessons and topics that a time or video rule covers and that are still open. Caching plugins must not serve cached pages to logged-in users. For YouTube embeds the add-on turns on the embed’s JavaScript interface; for Vimeo it uses the player’s messages.

Reminders are not sent

Check that the license is active, that WP-Cron runs (or a real cron job calls it) and that the learner has had no progress for the number of days set. The activity log shows every reminder that was sent or failed, and wp ld-course-flow reminders --dry-run counts what is due.

Frequently Asked Questions

Does it change LearnDash data?

Only through LearnDash’s own functions: completing steps and courses, adding a manual quiz pass entry when a rule says so, and enrolling in courses. Deleting the add-on removes its rules, log and settings; progress that rules created stays, as it would after a manual completion.

Can rules conflict?

Rules add to each other. Step rules complete a step once; drip rules use the latest release time; one reminder per learner and course goes out per run, even with several reminder rules.

Does it slow down lessons?

A visit rule adds a few database reads to a lesson view. The tracker is a small script that sends one short request every 15 seconds while a covered step is open, and loads nothing from other sites.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr