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

Start free trial

LearnDash Manage Certificate Template

learndash/manage-certificate-template creates a new Certificate Builder template or updates an existing one.

A background image is required, and the block vocabulary is limited.

At a glance

Abilitylearndash/manage-certificate-template
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Certificates
RequiresAcrossAI Pro, plus LearnDash LMS active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

The blocks that work

The body accepts core/paragraph, core/heading, core/columns, core/spacer, core/image, core/quote, core/list, core/separator and core/shortcode, plus LearnDash’s own ld-courseinfo, ld-usermeta, ld-groupinfo and ld-quizinfo.

Anything else renders through a shortcode fallback and usually comes out broken. That is the whole constraint: a certificate is rendered to PDF by mPDF, which supports a fraction of what a browser does.

The LearnDash blocks are how a certificate gets the learner’s name, the course title and the completion date onto the page. A certificate built from core blocks alone says the same thing to everybody.

Page setup is page_size (Letter or A4), orientation (L or P), font and container_width. The font must come from learndash/list-certificate-fonts — an unrecognised key falls back silently and the certificate renders in the wrong typeface.

Assign the finished template to a course with learndash/manage-course.

Idempotent.

Input

NameTypeRequiredWhat it is
actionstringYescreate or update.
certificate_idintegerFor updateWhich template.
titlestringFor createThe template title.
background_attachment_idintegerFor createThe background image. Required — without one the template fails at render time.
contentstringNoThe template body, in the supported blocks.
page_sizestringNoLetter or A4.
orientationstringNoL or P.
fontstringNoA key from learndash/list-certificate-fonts.
container_widthintegerNoThe content container width.

What comes back

NameTypeWhat it is
templateobjectThe template after the write.
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:

Create a certificate template for the course.

It resolves to one call:

{
  "ability": "learndash/manage-certificate-template",
  "parameters": {
    "action": "create",
    "title": "Course completion certificate",
    "background_attachment_id": 2201,
    "page_size": "A4",
    "orientation": "L"
  }
}

Worth knowing

  • Rendered to PDF by mPDF, which supports far less than a browser.
  • Unsupported blocks fall back to a shortcode and usually break.
  • The LearnDash blocks are what personalise the certificate.
  • A missing background makes the template fail at render time.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading