Get a menu with its items
get_menuFetch a navigation menu with all items rendered as an indented tree, clarifying the menu's hierarchy at a glance.
Instructions
Get one navigation menu together with all of its items, rendered as an indented tree so the hierarchy is obvious.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The menu ID from list_menus. | |
| 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. |