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

Start free trial

LearnDash Get Elementor Widget Schema

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

Abilitylearndash/get-elementor-widget-schema
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Integrations & Add-ons
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

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

NameTypeRequiredWhat it is
widget_typestringYesA widgetType from learndash/list-elementor-widgets.

What comes back

NameTypeWhat it is
settingsarrayEach setting key and the shortcode parameter it maps to.
elementobjectA ready-to-adapt _elementor_data element.
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:

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_data structure.
  • 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


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading