How to Remove WordPress Dashboard Widgets

All you have to do is simply paste the following code in your theme’s functions.php file. Although it maybe a good idea to save this file as a plugin and make it a drop-in plugin.

function remove_dashboard_widgets() {
	global $wp_meta_boxes;

	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);

}

add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

  • 20 Users Found This Useful
Was this answer helpful?

Related Articles

404 Errors after clicking Wordpress links

This is a common issue when a blogs rewrite rules have been altered. You will notice this when...

Admin login for WordPress and other programs

I know the admin password, and simply want to change it. Simply login to your admin panel (for...

How to Install a WordPress Theme

WordPress does allow you to download and use custom themes for your blog. If you would like to...

WordPress is giving error: "Missing a temporary folder" while uploading image/media ?

WordPress is giving error on image upload : "image.jpg” has failed to upload due to an error...

Optimizing Wordpress on Shared Hosting

Wordpress blogs can be extremely resource intensive if you happen to experience a surge in...