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

Start free trial

LearnDash List Questions

learndash/list-questions lists every question belonging to one quiz, in quiz order, with each question’s post ID, title, type, points and question_pro_id.

Questions only exist inside a quiz, so quiz_id is required.

At a glance

Abilitylearndash/list-questions
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Questions
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

A question is stored twice: as a post, and as a ProQuiz row holding the answers. Both have to exist for a learner to answer it.

A question reported with linked=false is half-created — the post exists and its ProQuiz row does not. It appears in wp-admin, looks complete, and cannot be answered.

That state arises from an interrupted creation or from a question written directly as a post, and nothing in the LearnDash interface flags it.

So the flag is the useful column here. A quiz with one unlinked question is a quiz that will behave strangely for every learner who reaches it.

The question_pro_id is where the answers live, and is what learndash/get-question uses to fetch them.

Input

NameTypeRequiredWhat it is
quiz_idintegerYesThe quiz.

What comes back

NameTypeWhat it is
questionsarrayEach question with its post ID, title, type, points, question_pro_id and linked flag.
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 questions are in this quiz?

It resolves to one call:

{
  "ability": "learndash/list-questions",
  "parameters": {
    "quiz_id": 640
  }
}

Worth knowing

  • linked=false is a half-created question: visible in admin, unanswerable.
  • Nothing in LearnDash’s interface flags that state.
  • The ProQuiz ID is where the answers are stored.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading