Insert Avada Element
Adds a new element to an Avada page by copying an element already on that page (source_index) — with everything inside it — and placing the copy before or after another element of the same kind, or inside a column, row or container. Optionally give the copy new content and options. Copying keeps the new element's structure valid; elements are never built from scratch. CSS ID options on the copy are emptied. Changes the live page; the previous layout is kept as a revision. Call mosmcp/avada-read-page-layout first for indexes and the layout_hash.
Also known as: add Avada element, duplicate section, add a button, clone Fusion element.
| Property | Value |
|---|---|
| Ability slug | mosmcp/avada-insert-element |
| Wire tool name | mosmcp__avada-insert-element |
| Category | Avada Builder (mosmcp-avada) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_posts |
| Minimum default role | Contributor |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| post_id | integer (min 1) | Yes | — | ID of the page, post or Avada Library item. |
| layout_hash | string | Yes | — | The layout_hash from your latest mosmcp/avada-read-page-layout of this page. The edit is refused if the page changed since. |
| source_index | integer (min 0) | Yes | — | Index of the element to copy. |
| target_index | integer (min 0) | — | Optional. Index of the element to place the copy next to or inside. Defaults to source_index. | |
| placement | string (one of before, after, inside_start, inside_end) |
after |
Where the copy goes relative to target_index: before/after it (same kind of element), or at the start/end inside it (target is a column for elements, a row for columns, a container for rows). | |
| content | string | — | Optional. New text or HTML for the copy, for elements that hold text. | |
| options | object | — | Optional. Option name => value to set on the copy. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| post_id | integer | Yes | |
| title | string | ||
| previous_layout_hash | string | ||
| layout_hash | string | Yes | The new hash, for a following edit. Element indexes after an insert have shifted. |
| change | object | Yes | What changed, read back from the saved page. |
| backup | object | Yes | |
| backup.method | string | ||
| backup.revision_id | integer | ||
| backup.restore | string | ||
| edit_url | string | ||
| view_url | string | ||
| warnings | object[] | Non-fatal issues encountered while running. | |
| warnings[].code | string | ||
| warnings[].message | string | ||
| warnings[].context | string |
| << Previous | Next >> |
|---|---|
| List Avada Library Items |
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.