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

Start free trial

LearnDash Get Certificate Template

learndash/get-certificate-template fetches a certificate template: its post fields, its kind, its builder settings, and which courses, quizzes or groups use it.

It flags when the template has no background image.

At a glance

Abilitylearndash/get-certificate-template
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

Certificate Builder hard-fails at render time without a background image. A template without one does not produce a plain certificate — it produces an error, when a learner completes a course and tries to download it.

That is a failure that happens at the worst possible moment, to somebody who has just finished, and it is invisible until then.

So the flag is prominent. A template with no background is broken and should be treated as such.

The builder settings are page size, orientation, font and container width. Page size and orientation have to match the background image’s proportions or the result is stretched or cropped.

The font must be one the site actually has — learndash/list-certificate-fonts lists them, and an unrecognised key falls back silently to the default.

The usage list says what would be affected by changing or deleting this template.

Input

NameTypeRequiredWhat it is
certificate_idintegerYesThe template.

What comes back

NameTypeWhat it is
templateobjectPost fields, kind and builder settings.
has_backgroundbooleanFalse means the template will fail at render time.
used_byarrayCourses, quizzes and groups using 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:

Is this certificate template usable?

It resolves to one call:

{
  "ability": "learndash/get-certificate-template",
  "parameters": {
    "certificate_id": 810
  }
}

Worth knowing

  • No background image means a render error, not a plain certificate.
  • The failure happens when a learner tries to download, and not before.
  • Page size and orientation must match the background proportions.
  • An unrecognised font falls back silently.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading