[memb_learndash_is_completed]

Description

Checks completion for the item given by id:

  • Course (sfwd-courses): completed when the user's course progress record shows completions.
  • Lesson / topic / quiz: completed per the user's LearnDash activity record.

The not attribute inverts the result. Logged-out visitors and missing/invalid IDs render nothing.

Shortcode Examples

[memb_learndash_is_completed id="123"]You finished! 🎉[/memb_learndash_is_completed]

Inverted:

[memb_learndash_is_completed id="123" not="true"]Keep going, almost there.[/memb_learndash_is_completed]

Shortcode Parameters

id

Post ID of the course/lesson/topic/quiz. Required. Default: 0.

not

Inverts the result. Default: false.

Shortcode Attributes

Attribute Value
Conditional Yes
Nestable No
Accepts formatting Yes