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

Start free trial

LearnDash List Certificate Templates

learndash/list-certificate-templates lists the certificate templates on this site.

Each reports whether it is a Certificate Builder template or a legacy one, and which courses, quizzes or groups use it.

At a glance

Abilitylearndash/list-certificate-templates
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Certificates
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 records which kind a template is in a meta flag, and that flag can disagree with reality — a template converted by hand, or migrated, ends up marked one way and containing the other.

So the kind is determined by reading the template’s actual block content rather than trusting the flag. That is slower and it is right.

It matters because the two kinds render through completely different paths. A template treated as the wrong kind produces either an empty certificate or a rendering error, and neither says why.

The usage list is the other half. A template in use by nothing issues no certificates, however carefully it was designed — which is a common state on sites where somebody built a certificate and never assigned it.

Assigning one is learndash/manage-course or the equivalent quiz and group settings.

Input

NameTypeRequiredWhat it is
per_pageintegerNoRows per page.

What comes back

NameTypeWhat it is
templatesarrayEach template with its kind, determined from its content, and what uses it.
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 certificate templates do we have?

It resolves to one call:

{
  "ability": "learndash/list-certificate-templates",
  "parameters": {}
}

Worth knowing

  • The kind is read from the content, not the meta flag, because they can disagree.
  • The two kinds render through different paths entirely.
  • A template used by nothing issues nothing.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading