WordPress at Your Fingertips
function is not described

walk_nav_menu_tree() WP 3.0.0

Retrieves the HTML list content for nav menu items.

No Hooks.


String. The HTML list content for the menu items.


walk_nav_menu_tree( $items, $depth, $r );
$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.


Since 3.0.0 Introduced.

Code of walk_nav_menu_tree() WP 5.7.2

function walk_nav_menu_tree( $items, $depth, $r ) {
	$walker = ( empty( $r->walker ) ) ? new Walker_Nav_Menu : $r->walker;

	return $walker->walk( $items, $depth, $r );