30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

LearnDash List Course Products

learndash/list-course-products lists WooCommerce products that grant access to LearnDash courses or groups, with what each one grants.

Requires both WooCommerce and the LearnDash WooCommerce Integration add-on.

At a glance

Abilitylearndash/list-course-products
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Integrations & Add-ons
RequiresAcrossAI Pro, plus LearnDash LMS active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

How it works

Products reported with grants_nothing=true are purchasable and linked to no course or group. That is the usual cause of a learner who has paid and has no access — the purchase succeeded and granted nothing.

It happens because the link between a product and its courses is a separate configuration from the product itself, and a product duplicated or created without it looks complete in WooCommerce.

Nothing in WooCommerce flags it, and nothing in LearnDash does either. The customer finds out.

Pass course_id to find which products sell one specific course, which is how you check a course is actually purchasable before promoting it.

A course with no products and a paid access mode is the mirror-image problem: purchasable in principle and available through no product.

Input

NameTypeRequiredWhat it is
course_idintegerNoFind the products selling this course.
per_pageintegerNoRows per page.

What comes back

NameTypeWhat it is
productsarrayEach product with what it grants and a grants_nothing flag.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Which products sell this course?

It resolves to one call:

{
  "ability": "learndash/list-course-products",
  "parameters": {
    "course_id": 412
  }
}

Worth knowing

  • grants_nothing is why a paying customer has no access.
  • Nothing in WooCommerce or LearnDash flags that state.
  • A paid course with no products is the mirror-image problem.
  • Needs WooCommerce and the integration add-on.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading