wordpress_update_menu
Update a WordPress navigation menu (name/description).
wordpress_update_menu
Update a navigation menu.
Parameters
3 parameters, 1 required.
| Name | Type | Required | What it is |
|---|---|---|---|
id | number | yes | Menu ID |
name | string | no | Menu name |
description | string | no | Menu description |
Example call
The smallest valid call, with the required parameters only:
{
"name": "wordpress_update_menu",
"arguments": {
"id": 123
}
}
Response
{
"success": true,
"updated": true,
"id": 10
}
What it changes
It writes to the site. Respira takes a snapshot before the write, and the change can be undone from that snapshot for 90 days. Calling it twice with the same arguments leaves the site in the same state as calling it once. On a connection set to read-only it is refused with respira_scope_denied.
Availability
Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.
Example Prompts
- "Rename menu 10 to 'Main Navigation'"
- "Update the description for the footer menu"
Related Tools
Was this page helpful?