Uma área de pesquisa sobre o WordPress para devs e autores do tema



walk_nav_menu_tree ›

Desde3.0.0
Obsoleton/a
walk_nav_menu_tree ( $items, $depth, $r )
Parâmetros: (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) $r An object containing wp_nav_menu() arguments.
    Required: Yes
Usos:
  • Walker_Nav_Menu
Retorna:
  • (string) The HTML list content for the menu items.
Definido em:
Codex:

Retrieve the HTML list content for nav menu items.



Fonte

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

	return call_user_func_array( array( $walker, 'walk' ), $args );
}