Skip to content

Instantly share code, notes, and snippets.

Last active December 22, 2015 05:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Remove WP Dashboard Widgets
// Remove Dashboard Widgets
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