[wp-trac] [WordPress Trac] #26392: Can't Remove Site Content and WordPress News Dashboard Panels

WordPress Trac noreply at wordpress.org
Wed Dec 4 13:08:31 UTC 2013


#26392: Can't Remove Site Content and WordPress News Dashboard Panels
----------------------------+-----------------------------
 Reporter:  cookiesfordevo  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 Previously the following code (3.7.1 and earlier) would remove all the
 dashboard panels and still works with the exception of Site Content and
 WordPress News.

 Tried attaching it to other actions (wp, init, current_screen) without any
 change.

 {{{

 add_action('admin_menu', 'remove_dashboard_panels');
 function remove_dashboard_panels () {

         remove_meta_box('dashboard_secondary', 'dashboard', 'normal' );
 //Other Wordpress News
         remove_meta_box('dashboard_activity', 'dashboard', 'normal' );
         remove_meta_box('dashboard_right_now', 'dashboard', 'normal' );
         remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal'
 );
         remove_meta_box('dashboard_plugins', 'dashboard', 'normal' );
         remove_meta_box('dashboard_quick_press', 'dashboard', 'normal' );
         remove_meta_box('dashboard_primary', 'dashboard', 'normal' );
 //Wordpress Blog
         remove_meta_box('dashboard_recent_drafts', 'dashboard', 'normal'
 );
         remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal'
 );

 }

 }}}

 We're not against WordPress news, but clients get easily confused, and we
 like to keep things as minimal as possible.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26392>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list