wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



walk_nav_menu_tree › WordPress Function

Da3.0.0
Deprecaton/a
walk_nav_menu_tree ( $items, $depth, $args )
Parametri: (3)
  • (array) $items The menu items, sorted by each menu item's menu order.
    Richiesto:
  • (int) $depth Depth of the item in reference to parents.
    Richiesto:
  • (stdClass) $args An object containing wp_nav_menu() arguments.
    Richiesto:
Usi:
  • Walker_Nav_Menu
Ritorna:
  • (string) The HTML list content for the menu items.
Definito a:
Codex:

Retrieves the HTML list content for nav menu items.



Sorgenti

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

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