walk_nav_menu_tree( array $items, int $depth, stdClass $r )

Retrieve the HTML list content for nav menu items.

Description Description

Parameters Parameters


(array) (Required) The menu items, sorted by each menu item's menu order.


(int) (Required) Depth of the item in reference to parents.


(stdClass) (Required) An object containing wp_nav_menu() arguments.

Top ↑

Return Return

(string) The HTML list content for the menu items.

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.