id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses
19297 Add new parameters to wp_nav_menu() and customize output this function egorpromo " In some cases menu that generated by wp_nav_menu() must have accurate class naming. Now I can see all sub-menus (
) have the same class ""sub-menu"". And all li-items (
- ) have the same class ""menu-item"".
I propose to use different names for all sub-menus depending of its level in depth. That can be made by add new options to wp_nav_menu() function to customise output by theme developers or simple create different classes for sub-menus in core of this function.
Below I write example where all ul-tags have names depending of its level and all li-tags have names depending of its level: