Update a navigation menu
update_menuUpdate a WordPress menu's name, theme locations, and auto-add setting by providing its ID.
Instructions
Rename a menu or change which theme locations it fills.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The item ID. | |
| name | No | Display name. | |
| 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. | |
| auto_add | No | Automatically add new top-level pages to this menu. | |
| locations | No | Replaces the current location assignments. | |
| description | No | Longer descriptive text. |