[wp-trac] [WordPress Trac] #16738: Add filter for attributes on menu item links

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 3 12:04:08 UTC 2011


#16738: Add filter for attributes on menu item links
---------------------------+-----------------------------
 Reporter:  simonwheatley  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Menus          |    Version:
 Severity:  normal         |   Keywords:  dev-feedback
---------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16738>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list