Get WPBakery Element


Returns one WPBakery element in full: every attribute (decoded the way WPBakery reads them), its inner content, a button or link's url/title/target, its Design Options as CSS properties, and the elements inside it. Read-only. Get element_id from mosmcp/wpbakery-read-page-layout. What it returns is what mosmcp/wpbakery-update-element-content and mosmcp/wpbakery-update-design-options accept back.

Also known as: element settings, block settings, module options.

Property Value
Ability slug mosmcp/wpbakery-get-element
Wire tool name mosmcp__wpbakery-get-element
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: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
post_id integer (min 1) Yes — The post or page ID.
element_id string Yes — The element_id from mosmcp/wpbakery-read-page-layout, for example "0.1.2".

 

Output schema

Field Type Required Description
post_id integer Yes
layout_hash string Yes
element object Yes
element.element_id string Yes
element.parent_id string
element.tag string Yes
element.name string
element.depth integer
element.attributes object Yes Every attribute, decoded.
element.content string Inner content as stored (HTML).
element.content_text string
element.content_truncated boolean
element.content_editable boolean
element.content_encoded boolean True for Raw HTML/JS elements, whose content WPBakery stores encoded; it is shown decoded and cannot be changed here.
element.link object | null
element.design_options object
element.children object[]
notes string[]

 


<< Previous Next >>
Apply WPBakery Template Insert WPBakery Element

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.