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

Start free trial

LearnDash List Achievements

learndash/list-achievements lists the achievement definitions on this site — the badges learners can earn.

Requires the LearnDash Achievements add-on.

At a glance

Abilitylearndash/list-achievements
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Achievements
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

Each definition carries its trigger, which is what a learner does to earn it; its points; its occurrence limit; its scope; and how many times it has actually been awarded.

The award count is the most informative column. An achievement defined a year ago and never awarded is either scoped to something nobody does, or triggered by something that does not fire — and both look identical from the definition.

The occurrence limit decides whether a badge is repeatable. Zero means unlimited, which is what makes “logged in five days running” a badge somebody can earn repeatedly.

Scope keys restrict a badge to a particular course, lesson, topic, quiz or group. The string all is a wildcard and an empty key means not applicable to that trigger — which are different things and easy to conflate.

learndash/list-achievement-triggers lists the valid trigger keys, read live because the list is extensible.

Input

NameTypeRequiredWhat it is
per_pageintegerNoRows per page.

What comes back

NameTypeWhat it is
achievementsarrayEach badge with its trigger, points, occurrence limit, scope and award count.
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:

What badges can learners earn here?

It resolves to one call:

{
  "ability": "learndash/list-achievements",
  "parameters": {}
}

Worth knowing

  • A zero award count usually means the scope or trigger is wrong.
  • An occurrence limit of zero means unlimited repeats.
  • Scope all is a wildcard; an empty scope means not applicable.
  • Requires the LearnDash Achievements add-on.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading