Ashley Cameron Design

Ashley Cameron Design

Remove unwanted dashboard items

SnippetsWordPress

About a 1 minute read

"The art of living… is neither careless drifting on the one hand nor fearful clinging to the past on the other. It consists in being sensitive to each moment, in regarding it as utterly new and unique, in having the mind open and wholly receptive."

Alan Watts


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
}