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.
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. |