LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

User Courses → List

AI-generated

Summary

Lists the LearnDash courses associated with a specified WordPress user by sending a GET request to the LearnDash REST API.

Inputs

  • Parent ID (required) — WordPress user ID whose enrolled courses should be listed. Required.
  • Filters — Optional query filters. Supports Search, Per Page, Page, Order, Order By, and Status.
  • Query Parameters (JSON) — Optional raw query parameters as a JSON object. Merged over the Filters collection, so it can override or extend them.

Output shape

Array

Returns an array of LearnDash course objects from the API. If the API returns a single object, it is wrapped in an array.

Examples

Example 1: A workflow builder wants to fetch all courses assigned to a specific user ID.

List a WordPress user's enrolled courses.

Discussion