Create Theme Builder Template
Creates an Elementor Pro Theme Builder template (header, footer, single post or page, archive, search results, 404 page, custom section or loop item) as a draft, optionally with a layout. Nothing on the site changes until it is published and has display conditions; pass status "publish" only when asked. Element IDs may be left out and are generated; unknown widget types are refused.
Also known as: new header, new footer, add a single post template, build a theme part.
| Property | Value |
|---|---|
| Ability slug | mosmcp/elementor-create-theme-template |
| Wire tool name | mosmcp__elementor-create-theme-template |
| Category | Elementor Pro (mosmcp-elementor) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | publish_posts |
| Minimum default role | Author |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| type | string (min length 1) | Yes | — | The template type: header, footer, single-post, single-page, archive, search-results, error-404, section or loop-item. |
| title | string (min length 1) | Yes | — | The template's name, as shown in the Theme Builder. |
| status | string (one of draft, publish) |
draft |
"draft" (the default) or "publish". Publish only when the person asked for it to go live. | |
| elements | object[] | — | The top-level elements of the layout, as mosmcp/elementor-get-theme-template returns them in raw_elements. Each needs an elType ("container", or "widget" with a widgetType); ids are generated when left out. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | |
| title | string | ||
| type | string | Yes | Elementor document type, for example header, single-post, popup or loop-item. |
| type_label | string | ||
| location | string | The theme location it fills: header, footer, single, archive or popup. Empty for loop items and unassigned sections. | |
| status | string | Yes | publish (live), draft, pending or private. |
| author_id | integer | ||
| author | string | ||
| conditions | object[] | Display conditions, in the shape the set-conditions abilities take. | |
| conditions[].type | string | Yes | |
| conditions[].name | string | Yes | |
| conditions[].sub_name | string | ||
| conditions[].sub_id | integer | string | ||
| conditions_summary | string[] | The display conditions in plain words. | |
| live | boolean | Whether Elementor Pro shows it on the site now: published, with display conditions, and in Pro's conditions cache. Always false for loop items, which the Loop Grid and Loop Carousel widgets show. | |
| modified | string | Last change, in the site's timezone (Y-m-d H:i:s). Pass it, or modified_gmt, as expected_modified to an update. | |
| modified_gmt | string | Last change in UTC (Y-m-d H:i:s), the clock the other Elementor Pro abilities report as "modified". | |
| edit_url | string | Opens the template in Elementor. | |
| triggers_enabled | string[] | For a popup in a list: the triggers switched on. | |
| total_elements | integer | Elements in the layout now. | |
| warnings | object[] | Non-fatal issues encountered while running. | |
| warnings[].code | string | ||
| warnings[].message | string | ||
| warnings[].context | string | ||
| notes | string[] |
| << Previous | Next >> |
|---|---|
| Create Elementor Popup | Export Elementor Form Submissions as CSV |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.