Create Elementor Template 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 →Create Elementor Template
WriteCreate a new saved Elementor template — page, section, container, header, footer or popup — ready to build into.
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 creates a new elementor_library template post and initializes it as an empty Elementor document — the same _elementor_data/_elementor_version write and CSS-regeneration trigger a normal Elementor save performs — so the result opens ready in the Elementor editor rather than just being tagged as a template. It sets the title (required), template_type (container, section, page, header, footer or popup — defaults to container; header/footer/popup need Elementor Pro's Theme Builder to actually be usable), and status (publish or draft, defaults to publish so it shows up in the Templates library), and it registers the template_type as an elementor_library_type term the same way Elementor's own save flow does. Each call creates a brand-new template post — it is not idempotent, so calling it twice with the same title makes two templates. Use premium-addons/list-templates afterward to confirm it, or the build abilities to start adding elements into it via its post_id.
See it in action
You ask your AI assistant
"Create a new Elementor container template called 'Testimonial Block' so I can start building it."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | The title of the new template. |
| template_type | string | No | The Elementor template type: container, section, page, header, footer or popup. Defaults to container. header, footer and popup require Elementor Pro to be usable in the Theme Builder. |
| status | string | No | The template status: publish or draft. Defaults to publish so it appears in the Templates library. |
Returns
An object with post_id, title, template_type, edit_url (the Elementor editor URL for the new template), and preview_url.
Permission
The current user must have the 'edit_posts' capability, checked via Admin_Helper::check_user_can('edit_posts').
More Premium Addons for Elementor abilities
Add Container (Elementor v3)
Add a new Elementor v3 (classic) container to a page, with layout, background, border and spacing already set.
Add Flexbox (Elementor v4 atomic)
Add a new Elementor v4 atomic flexbox container to a page, with layout, background, border and spacing already set.
Change Post Status
Change the status of a page, post or Elementor template (e.g. draft to publish).
Check Copy Compatibility
Check whether this site can render elements copied from another site via a transfer URL, before actually importing them.
Check Elementor Element
Check whether a specific element or widget type is registered on the site before trying to build with it.
Clear Premium Addons Dynamic Assets
Clear generated dynamic CSS/JS asset files and purge the related caches.