Update Theme Builder Template


Changes an Elementor Pro Theme Builder template's title, status (draft, pending, private or publish) or whole layout. Publishing makes it live wherever its display conditions point. Passing elements replaces the layout, and Elementor keeps no revisions of templates, so that needs confirm once the template already has a layout; to change single elements use the Elementor element abilities instead. Popups and loop items have their own update abilities. Read the template first with mosmcp/elementor-get-theme-template (include_raw for the layout).

Also known as: edit header, publish the footer, rename a template, change the single post layout.

Property Value
Ability slug mosmcp/elementor-update-theme-template
Wire tool name mosmcp__elementor-update-theme-template
Category Elementor Pro (mosmcp-elementor)
Plan Pro

 

Required access

Requirement Value
Capability edit_post (checked against the specific post)
Minimum default role Contributor
Annotations readOnly: false · destructive: true · idempotent: false · openWorld: false

 

Input schema

Field Type Required Default Description
id integer (min 1) Yes — The template ID, as returned by mosmcp/elementor-list-theme-templates.
title string — New title.
status string (one of draft, pending, private, publish) — New status. "publish" makes it 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.
allow_empty boolean false Must be true for an empty elements list, which clears the layout.
expected_modified string — Optional. The "modified" (site time) or "modified_gmt" (UTC) value from your last read. The change is refused if the template changed since then.
confirm boolean false Must be true to replace a layout that already exists, once the person has agreed.

 

Output schema

Field Type Required Description
id integer Yes
title string
type string 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[]
changes object[] Yes What changed, read back after saving.
changes[].field string title, status or elements.
changes[].previous string
changes[].current string

 


<< Previous Next >>
Update Loop Item Template

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.