Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove WP Dashboard Widgets
<?php
// Remove Dashboard Widgets
// http://digwp.com/2010/10/customize-wordpress-dashboard/
function disable_default_dashboard_widgets() {
// disable default dashboard widgets
remove_meta_box('dashboard_right_now', 'dashboard', 'core');
remove_meta_box('dashboard_recent_comments', 'dashboard', 'core');
remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');
remove_meta_box('dashboard_plugins', 'dashboard', 'core');
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');
remove_meta_box('dashboard_quick_press', 'dashboard', 'core');
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');
remove_meta_box('dashboard_primary', 'dashboard', 'core');
remove_meta_box('dashboard_secondary', 'dashboard', 'core');
remove_meta_box('rg_forms_dashboard', 'dashboard', 'normal;');
remove_meta_box('blc_dashboard_widget', 'dashboard', 'normal;');
remove_meta_box('powerpress_dashboard_news', 'dashboard', 'normal;');
// disable Simple:Press dashboard widget
remove_meta_box('sf_announce', 'dashboard', 'normal');
}
add_action('admin_menu', 'disable_default_dashboard_widgets');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.