Insert WPBakery Row


Adds a row by copying a row already on the page — with its columns, column widths and Design Options, and either its elements or empty columns — and puts it where you say. Rows are copied rather than built from scratch so the new row has exactly the structure this site's WPBakery already uses. An inner row (vc_row_inner) is copied into a column. Changes the live page; reversible from the backup the result names. Needs layout_hash and the source row's element_id from mosmcp/wpbakery-read-page-layout.

Also known as: add section, add row, duplicate row, new columns.

Property Value
Ability slug mosmcp/wpbakery-insert-row
Wire tool name mosmcp__wpbakery-insert-row
Category WPBakery Page Builder (mosmcp-wpbakery)
Plan Pro

 

Required access

Requirement Value
Capability edit_post (checked against the specific post)
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 — The post or page ID.
layout_hash string Yes — The layout_hash from your latest mosmcp/wpbakery-read-page-layout (or a previous change's result). The change is refused if the page changed since.
source_row_id string Yes — element_id of the vc_row or vc_row_inner to copy.
target_container_id string — Optional. Where to put the copy: "root" for the top level of the page, a vc_section's element_id, or (for an inner row) a vc_column's element_id. Omit to put it next to the source.
position integer (min 0) — Optional zero-based position among the target's elements. Omit to place it right after the source (same container) or last.
empty_columns boolean false Copy only the row and its columns, leaving the columns empty.

 

Output schema

Field Type Required Description
post_id integer Yes
title string
layout_hash string Yes The new layout hash, for a following change.
previous_layout_hash string
backup object Yes
backup.backup_id string
backup.revision_id integer
backup.meta_name string
backup.restore string How to undo this change.
css_rebuilt_by string "wpbakery" (its own rebuild), "mosmcp" (patched directly), "unchanged", or "none" (failed; see warnings).
edit_url string
view_url string
warnings object[] Non-fatal issues encountered while running.
warnings[].code string
warnings[].message string
warnings[].context string
notes string[]
inserted_ids string[] element_id of each inserted top node, valid against the new layout_hash.
tag string
parent_id string Where it went: "" for the top level.
element_count integer Elements added, counting everything inside.

 


<< Previous Next >>
Insert WPBakery Element Read WPBakery Page Layout

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.