If you run a website with lot of registered users who have access to your admin panel or building a project for a client, then you might wanna remove WordPress dashboard widgets to get the WordPress feel out of your client’s site.
Plus, it’s a nice way to clear the dashboard if you have your own custom dashboard widgets on your WordPress dashboard.
Just add following code to your current theme’s functions.php file:
function disable_dashboard_widgets() { global $wp_meta_boxes; // wp.. unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); } add_action('wp_dashboard_setup', 'disable_dashboard_widgets', 999);