[wp-trac] [WordPress Trac] #36163: Make Walker_Nav_Menu::start_lvl more flexible by introducing filters for class name(s) at least
WordPress Trac
noreply at wordpress.org
Thu Feb 2 22:22:50 UTC 2017
#36163: Make Walker_Nav_Menu::start_lvl more flexible by introducing filters for
class name(s) at least
-------------------------------------------------+-------------------------
Reporter: ruslik | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.8
Component: Menus | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests good- | Focuses:
first-bug |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* keywords: reporter-feedback => needs-patch needs-unit-tests good-first-
bug
* milestone: Awaiting Review => 4.8
Comment:
Replying to [comment:4 ruslik]:
Thanks for clarifying. I agree, adding a filter the `sub-menu` class would
be a good thing. Naming the filter `nav_menu_submenu_css_class` and
mirroring the arguments for the filter `nav_menu_css_class`.
Filtering the full output might be overkill, as `end_lvl()` would also
need to be filtered at which point a custom walker isn't overkill.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36163#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list