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
| Ability | learndash/list-quiz-attempts |
| Toolset | LearnDash — toolset/learndash |
| Group | LearnDash › Reporting |
| Requires | AcrossAI Pro, plus LearnDash LMS active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI 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
| Name | Type | Required | What it is |
|---|---|---|---|
learner | string | integer | Yes | User ID, login or email. |
quiz_id | integer | No | Narrow to one quiz. |
course_id | integer | No | Narrow to one course. |
What comes back
| Name | Type | What it is |
|---|---|---|
attempts | array | Each attempt with score, percentage, points, pass or fail and date. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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
- LearnDash Get Quiz Statistics — across everyone instead
- LearnDash Reset User Progress — what destroys these
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category