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

Start free trial

Get Elementor Element

elementor/get-element returns the element at a seven-character hex ID for a post, along with its parent-ID path from the root.

The path is the part that makes this usable rather than merely informative.

At a glance

Abilityelementor/get-element
ToolsetElementor — toolset/elementor
GroupElementor › Elements & Widgets
RequiresElementor, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

An Elementor document is a tree of elements serialised to JSON and stored in the _elementor_data post meta. Every element carries a seven-character hex ID, a type, its settings, and its children. Nothing about that structure is validated by WordPress, so a malformed write produces a document the editor refuses to open.

An element ID on its own tells you nothing about where the element is. A heading could be at the root, inside a container, inside a column inside a section — and the operations you might want next all need the parent.

So the path comes back with it: the chain of parent IDs from the root down. That is what elementor/move-element and elementor/reorder-elements need, and what tells you whether deleting this element takes anything else with it.

The settings come back as stored. Elementor’s control keys are not always guessable from the editor labels, so reading a working element is often the fastest way to learn what a setting is called.

Input

NameTypeRequiredWhat it is
post_idintegerYesThe post holding the Elementor document.
element_idstringYesThe seven-character hex element ID.

What comes back

NameTypeWhat it is
elementobjectThe element with its type, settings and children.
patharrayThe parent IDs from the root down to this 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:

What is element a1b2c3d on page 412?

It resolves to one call:

{
  "ability": "elementor/get-element",
  "parameters": {
    "post_id": 412,
    "element_id": "a1b2c3d"
  }
}

Worth knowing

  • The parent path is what every structural operation needs next.
  • Reading a working element is the fastest way to learn a control key’s real name.
  • Children come back nested, so this is a subtree read as well as an element read.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading