[memb_learndash_is_enrolled]
Version Added 2.175
Summary
This shortcode outputs “yes” or “no” depending on whether a member is enrolled in a specified LearnDash course or not.
Shortcode Examples
[memb_learndash_id_enrolled id=123]
If the member is enrolled in the course, the output would look something like this:
This is designed to have content surrounding it. You could place this in a table or other format that shows a list of courses with a “yes” or “no” next to each course.
Shortcode Parameters
id: The ID# of the course to check if the member is enrolled in
You can find the LearnDash Course ID by opening the course as an admin and looking at the address / URL bar: