Remove WP Dashboard Widgets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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