Say "Hello!"

  • This field is for validation purposes and should be left unchanged.

Remove unwanted dashboard items


1
2
3
4
5
6
7
8
9
10
11
12
13
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');

function my_custom_dashboard_widgets() {
    global $wp_meta_boxes;
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); //Right Now - Comments, Posts, Pages at a glance
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); //Recent Comments
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); //Incoming Links
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); //Plugins - Popular, New and Recently updated Wordpress Plugins
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); //Wordpress Development Blog Feed
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); //Other Wordpress News Feed
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); //Quick Press Form
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); //Recent Drafts List
}

Back to Snippets Follow me on GitHub

Ashley Cameron logo
Blog