[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-includes/ -> nav-menu-template.php (summary)

Nav Menu API: Template functions

File Size: 605 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file

Defines 4 functions


Functions that are not part of a class:

wp_nav_menu( $args = array()   X-Ref
Displays a navigation menu.

param: array $args {
return: void|string|false Void if 'echo' argument is true, menu output if 'echo' is false.

_wp_menu_item_classes_by_context( &$menu_items )   X-Ref
Add the class property classes for the current context, if applicable.

param: array $menu_items The current menu item objects to which to add the class property information.

walk_nav_menu_tree( $items, $depth, $r )   X-Ref
Retrieve the HTML list content for nav menu items.

param: array    $items The menu items, sorted by each menu item's menu order.
param: int      $depth Depth of the item in reference to parents.
param: stdClass $r     An object containing wp_nav_menu() arguments.
return: string The HTML list content for the menu items.

_nav_menu_item_id_use_once( $id, $item )   X-Ref
Prevents a menu item ID from being used more than once.

param: string $id
param: object $item
return: string

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1