the Walker_Category class you are using requires 3 params in walk() method, the third param will be use_desc_for_title value (this is due to how Walker_Category::start_el() method is written).
In other words, to use the walk() method without generating a notice you should change your last line to
print_r( $walk->walk( $menu_items, -1, -1 ) );
The third param is a boolean:
- “-1” (or false) – will remove the “title” attribute from the generated menu links
- “1” ( or true) – will make the menu use category description for the title attribute.
Related Posts:
- What is a good resource to find out about making custom walkers?
- Comment Walker vs. Comment Callback
- Why is my menu order not working with wp_nav_menu?
- Incrementing a class in a custom walker
- Adding ul class with wp_list_categories Custom Walker
- how to conditionally add attributes to start_lvl() function?
- Menu location by menu id or menu ID in start_el() Walker
- Adding dynamic content to end_lvl in Walker Class [closed]
- Walker gives additional taxonomy name?
- $args->has_children not working with start_el()
- Limit Custom Crawler to front end only
- ol children instead of ul children
- Extend Walker Class for 2 checkbox taxonomy selection?
- using walker menu to add classes and attributes to elements
- Custom megameu walker need improvement
- List pages to show only Whitelisted sub pages
- Get Parent List Class for Child Pages Using Walker
- How do I get_the_content in a custom walker?
- Creating Custom navigation in wordpress with sub menus
- Page thumbnail doesn’t display on navigation
- How to remove ul & li from wordpress custom walker?
- Is it possible to display the Navigation Menu without using Walker_Nav Class
- Walker_Category – not reliably saving
- Custom Walker menu depth opening problem
- How to append something before final tag in walker class?
- Using wp_list_categories or other function inside a menu walker?
- Walker to add Bootstrap markup for wp_list_pages
- Help with output of post classes using apply_filters
- Custom walker pulldown display current page
- Menu items description? Custom Walker for wp_nav_menu()
- Custom Walker: how to get ID in function start_lvl
- Split up wp_nav_menu with custom walker
- Custom Nav walker display current menu item children, or siblings on no children
- Add a custom walker to a menu created in a widget
- Using a menu walker add a custom item at the end of the menu’s items
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- Mega Menu Walker
- How to count nav menu items?
- How Does The Walker Class Work?
- start_lvl Ignored in Custom walker_nav_menu
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- Add Caret to Menu Items with Sub-Menus in WordPress Theme
- Custom menu walker: how can i check first item
- How does a minimal menu walker look like?
- Display only page specific sub menu items using Custom Walker
- How do I dynamically populate wp_nav_menu from a custom taxonomy?
- Assign posts to taxonomy terms instead of the taxonomy terms to posts?
- Strict Standards Error bootstrap navwalker
- WordPress Menu Custom Walker Class
- How to create this custom menu walker?
- WordPress 4.4+ breaks Walker Extension
- Call custom field into menu item
- add span class inside wp_nav_menu link anchor tag
- Add class to top level menu item if it has multiple child levels
- Determine if a navigation item has children
- List Hierarchical Term List with Count with Related Term
- Custom Nav Walker menu – Display category count
- Any walker causes blank menu?
- Extend walker class with custom post types [closed]
- How do I pass an argument to my custom walker?
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- Simple Navigation Walker – Wrapper-class around first sub-menu
- Custom Nav Walker menu – Display children count
- Add Page ID class to nav menu items
- Using string instead of object class instantiation on the walker argument breaks wp_nav_menu
- automatically placing custom post types singles into submenu of main nav menu
- Pass a parameter to a menu walker
- Adding attributes to link in wp_nav_menu using custom Walker function
- Walker_Nav_Menu: put custom code between a particular
- Walker class: Problems with understanding how walk() method can be called without error
- Adding Post Counts to Menu (Nav) Programmatically?
- Show top-level parent with submenu menu walker
- Adding a class (arrows) to main menu links that have children?
- Term Checklist Walker – Disable Parent Categories
- Custom nav walker with different output depending on depth
- Adding html elements to wp nav menu
- Add Thumbnail to wp_list_categories()
- Customizing Walker_Nav_Menu
- Bar separated navigation by extending Walker_Nav_Menu
- Customize comment list markup
- Bar separated navigation by extending Walker_Page
- Single.php Active Category Class
- Assign different category colours to different categories in the main menu
- Output the aria-labelledby parameter for a nav menu child
- Extend walker – navigation, adding data attribute to a tag
- Custom Nav Walker sub-menu HTML construct
- Check if wp_nav_menu items have submenus
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- start_lvl on Walker is not working
- Customizing a walker menu class
- Add div to specific sub-menu
- How to add ID and class in nav menu walker?
- wp_nav_menu custom walker – child items
- How to remove trailing tags from wp_nav_menu walker
- Editing or filtering the output of the Genesis navigation
- How to add parent element’s title to nav menu’s child?
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- how to change WordPress menu markup/classes
- Render Selected Categories in Admin Edit Post Screen differently
- wp_nav_menu – page template name as item class