learndash/get-quiz fetches a single quiz: its post fields, its full LearnDash settings, and its linked ProQuiz ID.
The ProQuiz ID is the field that explains how quizzes actually work.
At a glance
| Ability | learndash/get-quiz |
| Toolset | LearnDash — toolset/learndash |
| Group | LearnDash › Lessons, Topics & Quizzes |
| 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
LearnDash stores a quiz as a WordPress post and as a ProQuiz record, and the two hold different things. The post holds the title, the content and the LearnDash settings; the ProQuiz record holds the questions and the statistics.
So a quiz’s questions are not in its post meta, and its attempt history is not either. Anything reading the post alone sees a quiz with no questions.
That split is also why learndash/manage-question goes through LearnDash’s own REST controller rather than writing directly — it is the only writer that keeps both halves in step.
The settings worth knowing: passingpercentage sets the pass mark, repeats and retry_restrictions limit retries, certificate names a template issued on passing, and quiz_resume lets a learner come back to an unfinished attempt.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
quiz_id | integer | Yes | The quiz. |
What comes back
| Name | Type | What it is |
|---|---|---|
quiz | object | Post fields and the full LearnDash settings object. |
pro_quiz_id | integer | The linked ProQuiz record, where questions and statistics live. |
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:
How is this quiz configured?
It resolves to one call:
{
"ability": "learndash/get-quiz",
"parameters": {
"quiz_id": 640
}
}Worth knowing
- A quiz is a post and a ProQuiz record. Questions and statistics live in the second.
- Reading the post alone shows a quiz with no questions.
repeatsis the retry limit; a value of zero usually means unlimited.- Read-only.
Related abilities
- LearnDash List Questions — the questions on the ProQuiz side
- LearnDash Get Quiz Statistics — the statistics side
- LearnDash Manage Quiz — change the settings
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category