Core Function
View Source on Trac ↗ walk_nav_menu_tree()
walk_nav_menu_tree( mixed $items, mixed $depth, mixed $args ) Retrieves the HTML list content for nav menu items.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $items array | The menu items, sorted by each menu item's menu order. Required |
| $depth int | Depth of the item in reference to parents. Required |
| $args stdClass | An object containing wp_nav_menu() arguments. Required |
Return Value
(string)
The HTML list content for the menu items.
Function Information
Since Version
3.0.0
Source File
wp-includes/nav-menu-template.php
Advertisement