learndash/get-elementor-widget-schema returns one LearnDash Elementor widget’s settings keys, the shortcode parameter each maps to, and a ready-to-adapt _elementor_data element for it.
Use learndash/list-elementor-widgets first for a valid widget_type.
At a glance
| Ability | learndash/get-elementor-widget-schema |
| Toolset | LearnDash — toolset/learndash |
| Group | LearnDash › Integrations & Add-ons |
| 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
The element shape is what you write into the page’s _elementor_data JSON. An Elementor layout is an array of sections containing columns containing widgets, and this returns the widget-level object to drop into that structure.
Having the object rather than a description of it is the difference between composing valid Elementor JSON and guessing at it — the structure has required keys that are not obvious.
The shortcode mapping is the other useful half. Every LearnDash Elementor widget renders through a shortcode underneath, and knowing which parameter a setting maps to explains what a setting actually does.
It also gives a fallback: anything expressible as a widget is expressible as a shortcode, which matters on pages not built with Elementor.
Settings are read from a live widget instance. If that comes back unavailable, the widget type and shortcode are still correct and usable — only the settings list is missing.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
widget_type | string | Yes | A widgetType from learndash/list-elementor-widgets. |
What comes back
| Name | Type | What it is |
|---|---|---|
settings | array | Each setting key and the shortcode parameter it maps to. |
element | object | A ready-to-adapt _elementor_data element. |
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:
How do I add the course list widget to an Elementor page?
It resolves to one call:
{
"ability": "learndash/get-elementor-widget-schema",
"parameters": {
"widget_type": "ld-course-list"
}
}Worth knowing
- The element drops straight into the
_elementor_datastructure. - Every widget renders through a shortcode, which is the fallback for non-Elementor pages.
- An unavailable settings list still leaves the type and shortcode usable.
- Read-only.
Related abilities
- LearnDash List Elementor Widgets — valid widget types
- Get Elementor Document Data — the structure this fits into
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category