Reorder menu items
reorder_menu_itemsSet order and nesting for multiple WordPress menu items in one operation, avoiding error-prone individual updates.
Instructions
Set the order and nesting of several menu items at once, which is far less error-prone than updating them one by one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"items": "<items>"
},
"name": "reorder_menu_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The desired arrangement. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |