All features
Cherry Blossom feature
Frontend Walkers: Johnnie Walker
Renders navigation links with buttons controlling their submenu lists.
Renders navigation links with buttons controlling their submenu lists.
Capabilities and extension points
ID connecting a parent item's toggle to the next submenu list.
- var string
Starts a submenu list.
- param string $output Used to append additional content.
- param int $depth Depth of the menu item.
- param array|\stdClass|null $args Navigation-menu arguments.
Starts a navigation menu item and adds its submenu toggle when needed.
This walker accepts navigation-menu items, not raw WP_Post page objects. The framework navbar intentionally disables the WordPress page fallback.
- param string $output Used to append additional content.
- param \WP_Post $item Menu item data object.
- param int $depth Depth of the menu item.
- param array|\stdClass|null $args Navigation-menu arguments.
- param int $current_object_id Current menu item ID.
Normalises assigned-menu arguments.
- param array|\stdClass|null $args Walker arguments.
- return \stdClass Normalised walker arguments.
Source reference
This editable reference page is based on the PHP documentation in frontend/walkers/class-johnnie-walker.php.