walk_nav_menu_tree

SummerySummery

Retrieve the HTML list content for nav menu items.

Syntax

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

ParametersParameters

$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.

ReturnReturn

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

SourceSource

File: wp-includes/nav-menu-template.php


			

ChangelogChangelog

Changelog
Version Description
3.0.0 Introduced.
Scroll to Top