Add filter for attributes on menu item links
|Reported by:||simonwheatley||Owned by:||SergeyBiryukov|
|Severity:||normal||Keywords:||has-patch commit needs-codex|
I find myself needing to change the attributes of the link element of each menu item to add some classes. Currently I can do this by extending and substituting Walker_Nav_Menu, but that the start_el method I replace is fairly long and I'm nervous of changes to core breaking my kit in the future. Much better to be able to hook a filter, IMO.
Change History (17)
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed