[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

Nav Menu API: Template functions

File Size: 601 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 wp-includes/class-walker-nav-menu.php

Defines 4 functions

  wp_nav_menu()
  _wp_menu_item_classes_by_context()
  walk_nav_menu_tree()
  _nav_menu_item_id_use_once()

Functions
Functions that are not part of a class:

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

param: array $args {
return: string|false|void Menu output if $echo is false, false if there are no items or no menu was found.

_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 21 08:20:01 2019 Cross-referenced by PHPXref 0.7