[wp-trac] [WordPress Trac] #40872: Add $item argument to start_lvl (nav menu walker)

WordPress Trac noreply at wordpress.org
Fri May 26 20:08:48 UTC 2017


#40872: Add $item argument to start_lvl (nav menu walker)
----------------------------------+-----------------------------
 Reporter:  mireillesan           |      Owner:
     Type:  feature request       |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Menus                 |    Version:  4.7.5
 Severity:  normal                |   Keywords:
  Focuses:  javascript, template  |
----------------------------------+-----------------------------
 Would it be possible to add the $item argument inside the start_lvl
 function?

 Other than the usual dropdown menu, I'd also like to build megamenus and
 to make that possible, I need to use different ul tags (along with some
 JavaScript components). These custom ul tags will be different based on
 the parent li ((array) $item->classes) and $depth.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40872>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list