Removing Plugin Widgets from Dashboard

Filed in:

New in Bones, there’s an optional admin.php file which adds the ability to customize your Dashboard. You can add new widgets and remove any default ones you don’t need. There’s also the ability to remove any widgets that plugins add when they are activated. Here’s the list of documented widgets. Please feel free to add any you come across on the Github Pull Request Form.

Default WordPress Dashboard Widgets

// Right Now Widget
remove_meta_box('dashboard_right_now', 'dashboard', 'core'); 
// Comments Widget      
remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); 
// Incoming Links Widget
remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');  
// Plugins Widget
remove_meta_box('dashboard_plugins', 'dashboard', 'core');       
// Quick Press Widget
remove_meta_box('dashboard_quick_press', 'dashboard', 'core');  
// Recent Drafts Widget   
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');  
// WordPress Blog Feed 
remove_meta_box('dashboard_primary', 'dashboard', 'core');  
// Other WordPress News       
remove_meta_box('dashboard_secondary', 'dashboard', 'core');       

Plugin Dashboard Widgets

// Yoast's SEO Plugin Widget
remove_meta_box('yoast_db_widget', 'dashboard', 'normal');  
// Gravity Forms Widget       
remove_meta_box('rg_forms_dashboard', 'dashboard', 'norma;');     

Adding Plugins with Widgets

This list will only have plugins that don’t allow you to remove the dashboard widgets via an option. For example, W3-Total Cache allows you to remove the Dashboard Widgets via a checkbox in it’s General Settings.

For information on how to remove these widgets when you’re NOT using the function built into Bones, check out this great tutorial.