[memb_learnpress_is_completed]

Description

Checks completion via the LearnPress user object:

  • Course (lp_course): completed when the course data status is finished.
  • Lesson (lp_lesson): completed per has_completed_item().

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

Shortcode Examples

[memb_learnpress_is_completed id="123"]Course complete![/memb_learnpress_is_completed]

Inverted:

[memb_learnpress_is_completed id="123" not="true"]Not finished yet.[/memb_learnpress_is_completed]

Shortcode Parameters

id

Post ID of the course or lesson. Required. Default: 0.

not

Inverts the result. Default: false.

Shortcode Attributes

Attribute Value
Conditional Yes
Nestable No
Accepts formatting Yes