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

Start free trial

LearnDash List Quiz Attempts

learndash/list-quiz-attempts lists every quiz attempt a learner has made, with score, percentage, points, pass or fail and when it happened.

Attempt history is stored per learner, so this is keyed on a person.

At a glance

Abilitylearndash/list-quiz-attempts
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Reporting
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

For statistics across everyone who took one quiz, learndash/get-quiz-statistics is the other direction — and it reads different tables, which is why the two are separate abilities rather than one with a filter.

Narrow to one quiz with quiz_id or one course with course_id.

The attempt list is the evidence behind a pass. On a compliance course it is the record that somebody demonstrated competence, with a date and a score, and it is frequently the reason the course exists.

It is also what learndash/reset-user-progress permanently destroys — the only ability in this suite that does — which is worth knowing before running one.

Multiple attempts appear separately. A learner who failed twice and passed on the third try has three rows, which is more informative than a single pass and occasionally more than somebody wants recorded.

Input

NameTypeRequiredWhat it is
learnerstring | integerYesUser ID, login or email.
quiz_idintegerNoNarrow to one quiz.
course_idintegerNoNarrow to one course.

What comes back

NameTypeWhat it is
attemptsarrayEach attempt with score, percentage, points, pass or fail and date.
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 quiz attempts has this learner made?

It resolves to one call:

{
  "ability": "learndash/list-quiz-attempts",
  "parameters": {
    "learner": "sam@example.com"
  }
}

Worth knowing

  • Keyed on the learner. Per-quiz statistics are a different ability and different tables.
  • On a compliance course this is the record the course exists to produce.
  • Progress reset destroys these permanently.
  • Every attempt appears, including the failed ones.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading