Back to Front Design

  • Home
  • About Us
  • Services We Offer
  • Tools we use
  • Testimonials
  • Blog
  • Contact

Remove Default Dashboard Widgets

January 19, 2016 by

Clean up the clutter in your Wordpress Dashboard - so you can then make full use of custom widgets such as WP Dashboard Notes

Add this snippet to your site specific plugin or child theme's functions.php file. Remove lines for any widgets you want to keep!

function remove_dashboard_widgets() {
global $wp_meta_boxes;

unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']);

}

add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );