[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

Nav Menu API: Walker_Nav_Menu class

File Size: 273 lines (9 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Walker_Nav_Menu:: (4 methods):
  start_lvl()
  end_lvl()
  start_el()
  end_el()


Class: Walker_Nav_Menu  - X-Ref

Core class used to implement an HTML list of nav menu items.

start_lvl( &$output, $depth = 0, $args = null )   X-Ref
Starts the list before the elements are added.

param: string   $output Used to append additional content (passed by reference).
param: int      $depth  Depth of menu item. Used for padding.
param: stdClass $args   An object of wp_nav_menu() arguments.

end_lvl( &$output, $depth = 0, $args = null )   X-Ref
Ends the list of after the elements are added.

param: string   $output Used to append additional content (passed by reference).
param: int      $depth  Depth of menu item. Used for padding.
param: stdClass $args   An object of wp_nav_menu() arguments.

start_el( &$output, $item, $depth = 0, $args = null, $id = 0 )   X-Ref
Starts the element output.

param: string   $output Used to append additional content (passed by reference).
param: WP_Post  $item   Menu item data object.
param: int      $depth  Depth of menu item. Used for padding.
param: stdClass $args   An object of wp_nav_menu() arguments.
param: int      $id     Current item ID.

end_el( &$output, $item, $depth = 0, $args = null )   X-Ref
Ends the element output, if needed.

param: string   $output Used to append additional content (passed by reference).
param: WP_Post  $item   Page data object. Not used.
param: int      $depth  Depth of page. Not Used.
param: stdClass $args   An object of wp_nav_menu() arguments.



Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7