[wp-trac] [WordPress Trac] #14666: Create reliable way to remove menus and submenus: remove_menu_item() and remove_submenu_item()
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 22 00:14:24 UTC 2010
#14666: Create reliable way to remove menus and submenus: remove_menu_item() and
remove_submenu_item()
----------------------------+-----------------------------------------------
Reporter: markjaquith | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.1
Component: Administration | Version:
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
Comment(by scribu):
I think remove_menu_item() might be confused with the 3.0 Menus. We should
include admin in there. The whole list would look like this:
* add_admin_menu() - currently add_menu_page()
* add_admin_submenu() - currently add_menu_page()
* remove_admin_menu()
* remove_admin_submenu()
This would be a good opportunity to pass named arguments instead of a
numeric list. See #13937
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14666#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list