[wp-trac] [WordPress Trac] #31049: Hiding Administration Menu Items through remove_menu_page function can create unnecessary margin via the menu separator list item

WordPress Trac noreply at wordpress.org
Mon Jan 19 02:17:03 UTC 2015


#31049: Hiding Administration Menu Items through remove_menu_page function can
create unnecessary margin via the menu separator list item
--------------------------+------------------------------
 Reporter:  monopine      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------

Comment (by monopine):

 For clarification, the Dashboard menu item is hidden through

 {{{
 function remove_menus() {
         remove_menu_page( 'index.php' );
 }
 add_action( 'admin_menu', 'remove_menus' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31049#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list