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

Start free trial

LearnDash Get User Points

learndash/get-user-achievement-points returns a learner’s achievement points total.

It is not just the sum of their badges.

At a glance

Abilitylearndash/get-user-achievement-points
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

The add-on adds any manually granted bonus points and subtracts points already spent buying courses — so the figure is a balance rather than an accumulation.

This reports the same number the learner sees, which is the one that matters when somebody asks why their total does not match their badges.

That gap is the usual support question here: a learner adds up their badge points, gets a larger number than their balance, and concludes something is broken. They spent some.

Points-for-courses is an optional feature, so on a site not using it the balance and the sum do agree — which makes the discrepancy site-specific and harder to anticipate.

learndash/list-user-achievements shows the earns behind it, with the points each carried at the time.

Input

NameTypeRequiredWhat it is
learnerstring | integerYesUser ID, login or email.

What comes back

NameTypeWhat it is
pointsintegerThe learner’s current balance.
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:

How many points does this learner have?

It resolves to one call:

{
  "ability": "learndash/get-user-achievement-points",
  "parameters": {
    "learner": "sam@example.com"
  }
}

Worth knowing

  • A balance, not a sum: bonuses are added and spending is subtracted.
  • This is the figure the learner sees.
  • The gap from the badge sum is spending, not a fault.
  • 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