Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13626 closed enhancement (worksforme)

Add onclick field to nav menu items

Reported by: sillybean Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: General Keywords:
Focuses: Cc:


In some very detailed analytics packages, nav menu items need individual onclick events. Could this be another field, hidden until turned on in the screen options?

Change History (2)

#1 @filosofo
5 years ago

This sounds like plugin material. It's fairly easy to add custom properties to menu items using filters.

#2 @nacin
5 years ago

  • Milestone Unassigned deleted
  • Resolution set to worksforme
  • Status changed from new to closed

-1. This could be achieved via your own callback/walker or by attaching to existing hooks. Additionally, it's better done via unobtrusive JavaScript anyway. Closing as worksforme.

Note: See TracTickets for help on using tickets.