Move Divi Module


Changes where a module sits on a page: pass a position to reorder it among its current siblings, or a target_parent_index to move it into a different container module (for example, into a different column). A module cannot be moved inside itself or one of its own descendants.

Property Value
Ability slug mosmcp/divi-element-move
Wire tool name mosmcp__divi-element-move
Category Divi (mosmcp-divi)
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 ID of the post or page.
module_index integer (min 0) Yes — The module index to move (see mosmcp/divi-page-read).
position integer (min 0) — Zero-based position the module should end up at among the destination's children. Omit to place it last. A position beyond the end is treated as last.
target_parent_index integer (min 0) — Optional. Module index of the container (row, column, section) to move into. Omit to reorder within the current parent.
expected_modified string — Optional. The "modified" value from a previous read. The edit is refused if the post changed since then.
dry_run boolean false If true, computes and returns what would change without saving anything.
skip_cache_clear boolean false Optional. Skip clearing Divi's static CSS cache for this post after the write. Defaults to false (cache is cleared, matching prior behavior).

 

Output schema

Field Type Required Description
post_id integer Yes
title string
modified string New modified timestamp, usable as expected_modified on a following edit. Unchanged from the pre-write value when dry_run was set.
changes object[] Yes What actually changed, or — when dry_run was set — what would change. A request that would change nothing is refused rather than reported as empty.
changes[].action string
changes[].module_index integer
changes[].tag string
changes[].moved_into string The target_parent_index moved into, or "same_parent" when only reordered.
dry_run boolean True when this was a dry run: "changes" describes what would happen, but nothing was saved.
view_url string
edit_url string
warnings object[] Non-fatal issues encountered while running.
warnings[].code string
warnings[].message string
warnings[].context string

 


<< Previous Next >>
List Divi Module Types on Page Preview Rendered Divi Page

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.