wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



walk_nav_menu_tree › WordPress Function

Od3.0.0
Przestarzałyn/a
walk_nav_menu_tree ( $items, $depth, $args )
Parametry: (3)
  • (array) $items The menu items, sorted by each menu item's menu order.
    Wymagane: Tak
  • (int) $depth Depth of the item in reference to parents.
    Wymagane: Tak
  • (stdClass) $args An object containing wp_nav_menu() arguments.
    Wymagane: Tak
Użytkowanie:
  • Walker_Nav_Menu
Powrót:
  • (string) The HTML list content for the menu items.
Zdefiniowane na:
Codex:

Retrieves the HTML list content for nav menu items.



Źródło

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

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