tr Skip to content
Black Friday FlowMattic for life, 12 payments of $33.25 Or $399 once. Nothing added for splitting Ends in --Days --Hrs --Min --Sec See the deal

When user earns a badge in myCred, enroll the user to a course in Learndash

When a user on your WordPress site earns a myCred badge, this workflow enrols that same user in the LearnDash course you choose, so a badge can open the door to new course content.

myCred LearnDash

2 steps Setup ~5 min Used on 2.5k sites Free to import

The When user earns a badge in myCred, enroll the user to a course in Learndash workflow on the FlowMattic canvas, with 2 steps across myCred, LearnDash
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

Badges in myCred mark progress, but on their own they don't change what a member can access. If you want an achievement to open a new course, you'd normally check the badge list and enrol people in LearnDash by hand. This workflow does the enrolment when the badge is earned.

The myCred trigger fires when a user earns a badge. Because myCred and LearnDash both run on your WordPress site, the user who earned the badge is the same WordPress user LearnDash enrols. The LearnDash step uses Enroll Into Course, which enrols a user into a course. Map the user from the myCred trigger into it and pick the course.

As imported, any badge triggers the enrolment, and every run enrols into the same course. If you award several badges and only one should open the course, add a Filter on the badge. Earning a second badge when the user is already enrolled simply runs the step again. Test with a user who doesn't have the course, then check Task History and the user's LearnDash profile.

Advanced course after a milestone

Learners who earn a Foundations Complete badge are enrolled in the advanced course, so they move on without waiting for an admin.

Community rewards

Members of a forum earn a Helper badge for answering questions, and the badge gives them access to a members-only masterclass in LearnDash.

Gamified staff training

Staff earn a badge for finishing onboarding tasks, and that badge enrols them in the next training course on the company intranet.

How this workflow runs

What happens at each step once the workflow is on, and what you need before you import it.

  1. Step 1Trigger
    myCred Earned Badge

    Fires when a user on your site earns a myCred badge. The user and badge details are passed on, so the LearnDash step knows who to enrol.

  2. Step 2Action
    LearnDash Enroll Into Course

    Enrols the user into a LearnDash course. Map the user ID from the myCred trigger and choose the course, then test with a user who isn't enrolled yet.

What you need

  • FlowMatticCore
  • myCred PluginPlugin
  • LearnDash PluginPlugin

After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.

Make it yours

Changes worth making after you import it.

  • Add a Filter after the myCred trigger that continues only when the badge matches the one tied to the course, so other badges don't enrol anyone.
  • Use a Router with one route per badge, each matching a different badge and enrolling into its own course, so each badge opens a different LearnDash course.
  • Add myCred's Add Points action after the enrolment to give the learner points for reaching the new course.

Questions about this workflow

Does every myCred badge enrol the user in the LearnDash course?

As imported, yes. The trigger fires on any earned badge and nothing checks which one. Add a Filter on the badge to limit it.

How does LearnDash know which user to enrol from the myCred badge?

Both plugins work with the WordPress users on your site, and the badge event names the user who earned it. Map that user's ID into the Enroll Into Course step, and confirm it on a test run.

What if the user is already enrolled in the LearnDash course?

The step runs again for that user. Check Task History on a test run to see how LearnDash responds for someone who already has access.

Is access removed if a myCred badge is revoked?

No. This workflow only enrols, and myCred's triggers in FlowMattic don't include a badge being revoked. Remove the user from the course in LearnDash if you need to.

Import this workflow into your WordPress site

Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Customers who run it every day

Rated 4.8 out of 5 by customers
Read more reviews

Works within WordPress, so it can easily access any inbuilt WP functions or custom functions and use them in your flow. It's easy to use and already has many useful integrations built.

Gerard H.

It contains a lot of integrations and custom actions that allow you to easily integrate your WordPress with many 3rd party applications and automate your tasks