Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Good morning

Remove unwanted dashboard items

SnippetsWordPress

About a 1 minute read

"The passion that we seek is within every experience; we just have to find it."

Ashley N Cameron


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
}