Get Element Settings is a WordPress ability from Premium Addons for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get Element Settings

Read-only
Premium Addons for Elementor Page Builders premium-addons/get-element-settings

Read the stored settings and atomic styles of a single element on an Elementor page, post or template.

Requires the Premium Addons for Elementor plugin on WordPress 7.0+ for the Abilities API (abilities are registered only when the wp_register_ability() function exists). Dashboard, settings and site-inventory abilities (get-id-by-title, list-pages, list-templates, get-global-settings, get-settings, update-setting, scan-usage, disable-unused-widgets, clear-dynamic-assets, subscribe-newsletter) require the caller hold the 'manage_options' capability. premium-addons/create-page requires 'edit_pages'. premium-addons/get-widget-schema, premium-addons/get-addon-schema, premium-addons/list-available-elements, premium-addons/list-pa-addons, premium-addons/detect-atomic-support, premium-addons/check-elementor-element and premium-addons/create-elementor-template require 'edit_posts'. premium-addons/get-page-structure, premium-addons/get-element-settings, premium-addons/add-flexbox, premium-addons/add-container, premium-addons/update-element-settings, premium-addons/insert-widget, premium-addons/remove-element, premium-addons/change-post-status and premium-addons/duplicate-post require 'edit_post' on the target post_id, and deny requests for a nonexistent post_id outright.

What it does

This ability reads back exactly what's stored for one element on an Elementor document, resolved by its post_id and element_id (find those first with premium-addons/get-page-structure). It returns the element's type (elType), widget type when it's a widget, whether it's an Elementor v4 atomic element, and two separate maps: settings (for v3 elements the full native settings; for atomic elements just the content props like tag and _cssid) and styles (the atomic local-style-class map, always empty for v3 elements). It routes through the same widget/element type lookup premium-addons/update-element-settings uses to detect atomic status, so the is_atomic flag is reliable rather than guessed. This gives an AI assistant a precise, per-element read before proposing an update, instead of re-parsing the whole page structure to find one element's current values.

See it in action

You ask your AI assistant

"What are the current settings on element abc123 on the page titled 'Homepage'?"

Inputs

Name Type Required Description
post_id integer Yes The ID of the page, post or template containing the element.
element_id string Yes The id of the element to read. Use premium-addons/get-page-structure to find element ids.

Returns

An object with post_id, element_id, elType, widgetType (empty unless elType is widget), is_atomic, settings (the stored settings map — only controls that were actually set, no control-default merge; for atomic elements this holds content props while visual props live in styles), and styles (the atomic v4 local style classes and their CSS-prop variants, always {} for v3 elements).

Permission

The current user must have the 'edit_post' capability for the target post_id, checked via Helpers::can_edit_input_post(); requests for a nonexistent post_id are denied outright.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.