[wp-trac] [WordPress Trac] #32784: Admin_init removes theme editor - admin_menu does not.
WordPress Trac
noreply at wordpress.org
Wed Jun 24 21:35:57 UTC 2015
#32784: Admin_init removes theme editor - admin_menu does not.
----------------------------+-----------------------------
Reporter: paaljoachim | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
I am creating a tutorial with removing all the submenu pages in the left
admin menu.
http://easywebdesigntutorials.com/reorder-left-admin-menu-and-add-a
-custom-user-role/
remove_submenu_page( 'themes.php', 'theme-editor.php' );
with add_action( 'admin_menu', 'remove_admin_submenus' );
Does not remove the theme editor.
Switching out admin_menu with admin_init the theme editor is also removed.
I am also hoping that there is some simple code to add a custom user role
to the adjusted admin menu code.
As well as removing customize, header and background from the themes.php
subpage menu.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32784>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list