wpseek.com
A WordPress-centric search engine for devs and theme authors



walk_nav_menu_tree › WordPress Function

Since3.0.0
Deprecatedn/a
walk_nav_menu_tree ( $items, $depth, $args )
Parameters: (3)
  • (array) $items The menu items, sorted by each menu item's menu order.
    Required: Yes
  • (int) $depth Depth of the item in reference to parents.
    Required: Yes
  • (stdClass) $args An object containing wp_nav_menu() arguments.
    Required: Yes
Uses:
  • Walker_Nav_Menu
Returns:
  • (string) The HTML list content for the menu items.
Defined at:
Codex:

Retrieves the HTML list content for nav menu items.



Source

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

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