[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Nav Menu API: Walker_Nav_Menu class
File Size: | 279 lines (9 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
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. since: 3.0.0 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. since: 3.0.0 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. since: 3.0.0 since: 4.4.0 The {@see 'nav_menu_item_args'} filter was added. since: 5.9.0 Renamed `$item` to `$data_object` and `$id` to `$current_object_id` 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. since: 3.0.0 since: 5.9.0 Renamed `$item` to `$data_object` to match parent class for PHP 8 named parameter support. 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. |
Generated: Mon Oct 7 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |