learndash/list-certificate-fonts lists the font keys a certificate template can use: mPDF’s built-ins plus any custom fonts uploaded to this site.
An unrecognised font key silently falls back to the default and the certificate renders in the wrong typeface.
At a glance
| Ability | learndash/list-certificate-fonts |
| Toolset | LearnDash — toolset/learndash |
| Group | LearnDash › Certificates |
| Requires | AcrossAI Pro, plus LearnDash LMS active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Pro 0.9.16 and later |
How it works
That silent fallback is the reason this exists. There is no error, no warning and no indication in the template — the certificate simply comes out in a font nobody chose, and the only way to notice is to look at one.
On a branded certificate that is a visible difference somebody will eventually mention, and it is easier to avoid than to diagnose.
Custom fonts are site-specific, so a font key that works on one site does not necessarily exist on another — which makes this a call before any template is copied between sites.
mPDF’s built-in fonts are limited and cover fewer scripts than a browser does. A certificate for a learner whose name is not in Latin script needs a font that supports it, and the default may not.
Read-only and cheap.
Input
This ability takes no input.
What comes back
| Name | Type | What it is |
|---|---|---|
fonts | array | The available font keys, built-in and custom. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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 fonts can our certificates use?
It resolves to one call:
{
"ability": "learndash/list-certificate-fonts",
"parameters": {}
}Worth knowing
- An unrecognised key falls back silently to the default.
- Custom fonts are site-specific and do not travel with a template.
- Built-in font coverage is narrower than a browser’s — check non-Latin names render.
- Read-only.
Related abilities
- LearnDash Manage Certificate Template — where the key is used
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category