From class Walker_Nav_Menu
:
function start_lvl( &$output, $depth = 0, $args = array() )
Your child class must use the same signature: three arguments, the first one passed by reference. Every difference will raise the error you got.
Note that $args
defaults to an empty array, but you get an instance of stdClass
, not an array. This is WordPress.
Related Posts:
- Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
- Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- How to fix strange 500 Error after Editing Menu?
- Getting stripos error when trying to add menu classes
- Error “The given object ID is not that of a menu item” on menu with 40+ items
- Cant add menu items with my theme
- Custom menu linking to page not found
- Split up wp_nav_menu with custom walker
- how to create a menu with all sub categories?
- How to avoid wp_nav_menu() ID conflict?
- Remove unusable metaboxes in nav menu management screen
- Highlight parent menu item when child is not in menu
- Add Commas Between Menu Items?
- Allow html tags in WordPress Custom Menus Description Field
- Add custom attribute to menu item link using Filter
- Remove nav menu or menu item
- Building a Sub-menu: Display Parent Category/Page’s Children When Viewing Children
- Output the aria-labelledby parameter for a nav menu child
- Hide menu items for visitors and filter based on role
- Add a “has-children” class to body tag?
- How to remove trailing tags from wp_nav_menu walker
- Custom Walker for Walker_Nav_Menu
- Make compatible custom menu widget for Twitter Bootstrap
- Different side menu on each page
- How to scroll item in the Menu setting effectively?
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- Appearance -> Menu -> Menu Structure : Add plain HTML code as an element
- Replace menu permalink/hyperlink with only menu name/slug
- wp_nav_menu add some element to container
- get_search_form() doesn’t appear to take parameter into account
- Custom menu deletes itself
- Header style different on home and remaining pages
- Pass GET params to URL from a main menu item
- show different admin menu to different user roles
- How to include a third level with wp_get_nav_menu_items function
- Schedule Page to Menu [duplicate]
- Limit the menu child levels under “admin > appearance > menus”
- Bulk Custom Menu and Wp-Ecommerce
- Show Menu from one WordPress install in another WordPress install
- Check if Page Already Exists in Menu
- Reuse a custom WordPress menu on another WordPress website
- Is this format possible with a custom Nav Walker class?
- Default WordPress menu content
- Add code to WordPress menu items by class
- how do i change the text under a navigation menu [closed]
- How do you add a around the second level of a Menu?
- Remove admin menu
- Limit User Iinterface for Admin?
- Creating menu and breadcrumb “sections” within WordPress 3 being used as a CMS
- How Do I Add Images To Main Navigation Menu
- Is it still not possible to show separate submenu with “Custom Menu”?
- Three menus – parent / child / sibling
- WordPress Nav Walker – Top menu link with dropdown link not clickable (dropdown opens)
- How to making dynamic URLs for menus in WordPress?
- swap out only main menu for logged in users
- Menu Not Showing on Mobile
- Add custom class to li element which has children
- How to Show Different Menus to Logged in Users in WordPress [duplicate]
- Unable to get menu pattern using a walker
- Menu not adding the right items
- get only the item you click on
- Output Post ID for all nav_items
- How to change the menu like this?
- Custom ul class
- wp_nav_menu inside an object — how do I deal with fallback_cb?
- Removing Submenu from Menu
- Walker_Nav_Menu creating too many closing tags?
- Theme Menu vs Native Menu
- Mobile navigation javascript problem
- Custom menu including also primary menu items
- open menu link (PDF) in new tab not download
- twentysixteen child theme – responsive menu – ham icon button not working – Cannot read property ‘classList’ of null
- How to add Loginout to Sub-menu
- PHP Warning adding menu
- Customize version different to Live version
- Sub-Items Not Visible in Navigation
- How to separate sub-menu output and keep associated with parent
- How to style wp_nav_menu?
- How to inject HTML to secondary menu on front end?
- Different colors for navigation bar
- Eliminate menu collapse button on website
- Best way to build a 500 item menu
- Showing main menu and child menu in diffent places in a same page
- WordPress Navigation default output
- Specifying Class style for Menu
- Convert HTML code to WordPress menu
- How to view menu and submenus in URL
- Permalinks linking to similar named site
- Add monthly archives menu and submenu
- wp nav menu – highlighting current page not working properly [closed]
- Hamburger Navigation Menu
- Custom navigation / menu output (walker?)
- What is the best way to incorporate responsive dropdown navigation menu into custom theme?
- how to add permalink/slug to wordpress custom link menu item
- Using walker to display all menu branches at once?
- How to add a class directly on a unordered list element that is a primary navigation
- Icon not shown in Dropdown menus in Twenty Seventeen Theme
- How to change WP menu item type?