WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9652 closed enhancement (fixed)

Allow menu reordering via plugin

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

Description

[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 9 years ago.

Download all attachments as: .zip

Change History (3)

@ryan
9 years ago

#1 @ryan
9 years ago

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

#2 @ryan
9 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.