[wp-trac] [WordPress Trac] #14666: Create reliable way to remove admin menus and submenus
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 23 02:15:25 UTC 2010
#14666: Create reliable way to remove admin menus and submenus
----------------------------+-----------------------------------------------
Reporter: markjaquith | Owner:
Type: task (blessed) | Status: new
Priority: high | Milestone: 3.1
Component: Administration | Version:
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
Comment(by scribu):
Usage example:
{{{
function remove_menu_test() {
// Remove the entire Tools menu
remove_menu_page('tools.php');
// Remove the Categories submenu from Posts
remove_submenu_page('edit.php', 'edit-
tags.php?taxonomy=category');
}
add_action('admin_init', 'remove_menu_test');
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14666#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list