[wp-trac] [WordPress Trac] #36800: Add object ID to menu item class name

WordPress Trac noreply at wordpress.org
Tue May 10 08:37:22 UTC 2016


#36800: Add object ID to menu item class name
-------------------------+----------------------
 Reporter:  selnomeria   |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Menus        |     Version:
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |     Focuses:
-------------------------+----------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Hey there,

 If you want to add specific classes to menu items, you can use the
 `nav_menu_css_class` filter for that. Check out the documentation for this
 hook: https://developer.wordpress.org/reference/hooks/nav_menu_css_class/

 So there's already a way to do that. We do not add constants for this.
 Instead, WordPress has a powerful hooks/filters system.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36800#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list