[wp-hackers] WP 2.7 - add_menu_page

Will Norris will at willnorris.com
Mon Nov 3 18:15:15 GMT 2008

On Nov 2, 2008, at 2:02 PM, Ryan Boren wrote:

> On Sat, Nov 1, 2008 at 11:52 PM, Will Norris <will at willnorris.com>  
> wrote:
>> Are there any plans of making it possible to add top-level menu items
>> anywhere other than the at the bottom of the menu?  I realize you  
>> can do
>> this manually by:
>> $menu[6] = array( ...
>> but I was wondering if the API would expose it.  I also remember  
>> Jane saying
>> something at WordCamp Portland about being able to sort the menu  
>> items.  Any
>> chance of either of those?
> I'm thinking of add_object_menu() that will add a top-level to the
> menu group containing Posts, Pages, Links, etc.

that would be great.  assigning to s specific index of the menu array  
is just asking for plugins to overwrite each other.

> No menu sorting for 2.7. Maybe 2.8.

No biggie, just figured that'd be another way to achieve the same  

More information about the wp-hackers mailing list