WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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:

Description

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)

comment:1 filosofo4 years ago

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

comment:2 nacin4 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.