[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Nav Menu API: Walker_Nav_Menu class
File Size: | 349 lines (12 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
Walker_Nav_Menu:: (5 methods):
start_lvl()
end_lvl()
start_el()
end_el()
build_atts()
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, $data_object, $depth = 0, $args = null, $current_object_id = 0 ) X-Ref |
Starts the element output. param: string $output Used to append additional content (passed by reference). param: WP_Post $data_object 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 $current_object_id Optional. ID of the current menu item. Default 0. |
end_el( &$output, $data_object, $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 $data_object Menu item data object. Not used. param: int $depth Depth of page. Not Used. param: stdClass $args An object of wp_nav_menu() arguments. |
build_atts( $atts = array() X-Ref |
Builds a string of HTML attributes from an array of key/value pairs. Empty values are ignored. param: array $atts Optional. An array of HTML attribute key/value pairs. Default empty array. return: string A string of HTML attributes. |
Generated : Tue Dec 24 08:20:01 2024 | Cross-referenced by PHPXref |