walk_nav_menu_tree( array $items, int $depth, stdClass $r )
Retrieve the HTML list content for nav menu items.
Description Description
Parameters Parameters
- $items
-
(array) (Required) The menu items, sorted by each menu item's menu order.
- $depth
-
(int) (Required) Depth of the item in reference to parents.
- $r
-
(stdClass) (Required) An object containing wp_nav_menu() arguments.
Return Return
(string) The HTML list content for the menu items.
Source Source
File: wp-includes/nav-menu-template.php
function walk_nav_menu_tree( $items, $depth, $r ) { $walker = ( empty( $r->walker ) ) ? new Walker_Nav_Menu : $r->walker; return $walker->walk( $items, $depth, $r ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |