Insert ElementsKit widget is a WordPress ability from ElementsKit Elementor Addons — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Insert ElementsKit widget

Write

Insert an ElementsKit widget into an Elementor document, either at the document root or inside a specific container.

Requires the ElementsKit Elementor Addons plugin (elementskit-lite) with Elementor active, on WordPress 6.9+ for the Abilities API (abilities are registered only when wp_register_ability() exists). Read-only listing abilities require 'edit_posts' (list-widgets, list-templates, list-library-templates), 'manage_options' (list-custom-widgets), or 'edit_theme_options' (list-mega-menus); write abilities that target a specific Elementor document (insert-widget, insert-template, import-library-template) require 'edit_posts' plus 'edit_post' on that document; template, header/footer, custom-widget, and mega-menu creation/configuration abilities require 'manage_options' (create-mega-menu additionally requires 'edit_theme_options'); create-page requires 'edit_pages' or 'edit_posts'.

What it does

Given a target post_id and a widget_type (validated against the ElementsKit prefix and the live Elementor widget registry), this ability builds a new Elementor element node with the supplied settings and appends it either to the document root (wrapped in a flex container when parent_id is 'document' or omitted) or to an existing container/section whose id matches parent_id. It returns the new element's id, the ids of any newly created root elements, a preview_url, and the document's current Elementor version after saving. It errors if the widget type is unknown or unregistered, or if the given parent_id can't be found in the document.

See it in action

You ask your AI assistant

"Add an ElementsKit heading widget to the top of page 42 with the text 'Welcome'."

Inputs

Name Type Required Description
post_id integer Yes Target Elementor document id.
parent_id string No Container id to append to, or "document" for the document root. Defaults to "document".
widget_type string Yes ElementsKit widget name, e.g. "elementskit-heading".
settings object No Elementor control settings for the widget.

Returns

An object with success, post_id, element_id (the inserted widget's id), inserted_root_ids (array), preview_url, and version.

Permission

Requires the 'edit_posts' capability and 'edit_post' on the target post_id.

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.