|
/ Documentation /Developer Docs/ SureDash Course Progress Hooks

SureDash Course Progress Hooks

Overview

SureDash provides course progress action hooks that developers can use to track how users move through courses and lessons.

These hooks make it possible to connect SureDash with external tools like:

  • CRMs such as WP Fusion, ActiveCampaign, HubSpot
  • Automation tools
  • Analytics or reporting systems
  • Custom plugins or internal dashboards

Using these hooks, developers can run custom code when a user finishes a lesson or completes an entire course.

This solves the common request for syncing course progress data with third party systems.

Why These Hooks Matter

Many integrations need more than just content protection.

They need to know things like:

  • When a user completes a lesson
  • When a user finishes a course
  • Which course or lesson was completed
  • Which user completed it

SureDash course progress hooks provide these signals so external systems can react correctly.

Examples:

  • Tag a user in a CRM when they complete a course
  • Trigger an automation when a lesson is finished
  • Update a custom progress report
  • Enroll users into the next workflow

Available Hooks

1. suredash_lesson_completed

Triggered when
A user completes a lesson inside a course.

Typical use cases

  • Send a lesson completion event to a CRM
  • Update user progress in an external system
  • Unlock related automation steps

2. suredash_course_completed

Triggered when
A user completes all lessons in a course.

Typical use cases

  • Apply a “Course Completed” tag
  • Trigger certificates or follow-up emails
  • Move users into advanced courses or funnels

Hook Data Provided

Each hook passes useful data that developers can work with:

  • User ID
  • Course ID
  • Lesson ID (for lesson hook)
  • WordPress user object

This makes it easy to connect SureDash progress with external tools and map it to the correct user and course.

Example Usage

Below is a simple example showing how a developer might listen for course completion.

add_action( 'suredash_lesson_completed', function( $lesson_id, $course_id, $user_id ) {
    // Example: Send data to a CRM
    // Example: Apply a tag
    // Example: Trigger a webhook
});


add_action( 'suredash_course_completed', function( $course_id, $user_id ) {
    // Example: Send data to a CRM
    // Example: Apply a tag
    // Example: Trigger a webhook
});

This code runs automatically when a user finishes a course.

Integration Notes

  • These hooks are designed for developers and integration partners.
  • Third party plugins like WP Fusion can use these hooks to build deeper integrations.
  • SureDash handles progress tracking internally, and these hooks expose that data safely.

Summary

  • SureDash supports course and lesson progress tracking hooks
  • Developers can react to lesson and course completion
  • Enables CRM sync, automation, and reporting
  • Removes the limitation of “content protection only” integrations

If you are building an integration and need help understanding these hooks, our team is happy to assist.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

On this page
Scroll to Top