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

Start free trial

LearnDash Get Quiz

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

Abilitylearndash/get-quiz
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Lessons, Topics & Quizzes
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

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

NameTypeRequiredWhat it is
quiz_idintegerYesThe quiz.

What comes back

NameTypeWhat it is
quizobjectPost fields and the full LearnDash settings object.
pro_quiz_idintegerThe linked ProQuiz record, where questions and statistics live.
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 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.
  • repeats is the retry limit; a value of zero usually means unlimited.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading