Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#9652 closed enhancement (fixed)

Allow menu reordering via plugin

Reported by: ryan's profile ryan Owned by: ryan's profile ryan
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Menus Keywords:
Focuses: Cc:


[11092] adds the ability for plugins to reorder top-level menus. Attached is a plugin showing how it is used.

Attachments (1)

menu_order.php (279 bytes) - added by ryan 15 years ago.

Download all attachments as: .zip

Change History (3)

15 years ago

#1 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

#2 @ryan
15 years ago

Attached code demonstrates menus with Dashboard, Posts, and Comments in the first menu group. The remaining menus follow in their usual order. When filtering the order array, any menus that are not mentioned in the array will be sorted after ones that are mentioned. Unmentioned menus are sorted in their usual order, relative to other unmentioned menus.

Note: See TracTickets for help on using tickets.