Move Widget
Moves a widget to another widget area, to a different position in its area (0 is the top), or both. Moving it to the inactive-widgets bin, area "wp_inactive_widgets", takes it off the site while keeping every setting, and moving it back restores it exactly: this is the safe, reversible way to remove a widget, and the answer says how to undo it. The widget's settings are not changed.
Also known as: reorder widgets, move widget to footer, remove widget from sidebar, hide widget, deactivate widget, put a widget back, restore widget.
| Property | Value |
|---|---|
| Ability slug | mosmcp/widget-move |
| Wire tool name | mosmcp__widget-move |
| Category | Widgets & Sidebars (mosmcp-widgets) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_theme_options |
| Minimum default role | Administrator (Shop manager too when WooCommerce is active) |
| Annotations | readOnly: false · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| widget_id | string | Yes | — | The widget ID, such as "block-3", as mosmcp/widget-list reports it. |
| area | string | — | Area to move it to: an ID ("footer-1"), a name ("Footer"), or "wp_inactive_widgets" to take it off the site but keep it. Leave out to reorder within its current area. | |
| position | integer (min 0) | — | Optional 0-based position in the destination area: 0 puts it at the top. Leave out to put it at the bottom of a new area, or to keep its place when only the area matters. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| widget_id | string | Yes | |
| area | string | Yes | Area the widget is in now. |
| position | integer | Yes | 0-based position in that area now. |
| widget | object | Yes | |
| widget.widget_id | string | Yes | The widget ID, for example "block-3" or "text-2". |
| widget.id_base | string | Yes | The widget type, for example "block", "text" or "custom_html". |
| widget.type_name | string | ||
| widget.area | string | Area ID the widget is in. | |
| widget.area_name | string | ||
| widget.area_status | string (one of active, inactive, unregistered) |
"active" when the area is shown on the site, "inactive" for the inactive-widgets bin, "unregistered" for an area the active theme does not register. | |
| widget.position | integer | 0-based position in its area; 0 is the top. | |
| widget.title | string | ||
| widget.summary | string | One line describing what the widget shows. Secrets are never included. | |
| widget.is_block_widget | boolean | ||
| widget.blocks | string[] | Block types in a block widget. | |
| widget.settings_editable | boolean | False when the widget's type is missing or not built with the standard widget API; it can still be moved or deleted. | |
| widget.settings | object | All the widget's settings, with secret-looking values masked. For a block widget, its content setting holds the block markup. | |
| widget.masked_settings | string[] | Names of settings whose values are masked. | |
| widget.block_markup | string | The block markup of a block widget. Empty for other widgets. | |
| area_widgets | string[] | Every widget in that area, in display order. | |
| warnings | object[] | Yes | Non-fatal issues encountered while running. |
| warnings[].code | string | ||
| warnings[].message | string | ||
| warnings[].context | string | ||
| notes | string[] | ||
| previous_area | string | Yes | |
| previous_position | integer | Yes | |
| changed | boolean | Yes | False when the widget was already where it was asked to go. |
| << Previous | Next >> |
|---|---|
| List Widgets | Update Widget |
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.