Posted By

chrisaiv on 09/13/14


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tryan326


Wordpress: Clean up Dashboard Meta boxes


 / Published in: PHP
 

URL: http://codex.wordpress.org/Function_Reference/remove_meta_box

Remove all those boxes on the Wordpress Dashboard

  1. /** ******** ******** ******** ******** ******** ******** ******** ********
  2. * TITLE: Clean up Wordpress Dashboard
  3. * DESCRIPTION: Remove all those boxes on the Wordpress Dashboard
  4. *
  5. * http://codex.wordpress.org/Function_Reference/remove_meta_box
  6. */
  7. function remove_dashboard_meta() {
  8. remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
  9. remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );
  10. remove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );
  11. remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );
  12. remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
  13. remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
  14. remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );
  15. remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
  16. remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
  17. remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' );
  18. }
  19. add_action( 'admin_init', 'remove_dashboard_meta' );

Report this snippet  

You need to login to post a comment.