Skip to content

Show a User's Enrolled Courses

Set my_courses="yes" to switch [reign_tutor_course] from a general catalog to a learner’s own enrolled courses. This is the mode used by the profile “My Courses” tab, and you can also place it on any page.

[reign_tutor_course my_courses="yes" show_progress="yes" count="4"]

If no specific user is resolved, the shortcode falls back to the logged-in user. A logged-out visitor is asked to log in.

[reign_tutor_course my_courses="yes" course_status="completed"]

course_status accepts:

  • all - every enrolled course (default).
  • completed - courses at 100 percent.
  • in-progress (or in_progress) - courses started but not finished.
  • not-started (or not-started) - courses at 0 percent.

When a filter returns nothing, the addon shows a status-specific message, for example “No completed courses yet.” or “No courses in progress.”

[reign_tutor_course my_courses="yes" user_id="123" course_status="all"]

Pass user_id="current" to force the current logged-in user regardless of context.

When my_courses="yes" and no user_id is given, the addon detects whose courses to show, in this order:

  1. BuddyPress or BuddyBoss displayed member (bp_displayed_user_id()).
  2. PeepSo profile owner (PeepSo’s own profile shortcode view-user method).
  3. Fallback to the current logged-in user.

The shortcode also recognizes when it is running inside a profile or author context to pick a two-column default. Recognized contexts include BuddyPress member pages, PeepSo profiles (by URL segment, page object, or the peepso_profile shortcode), and WordPress author archives.

With show_progress="yes", each enrolled course shows a completion bar. Lists longer than 12 courses paginate automatically. See Course progress bars.