WordPress displays several default dashboard widgets that many users never use. Removing them creates a cleaner admin area, especially for clients.
Steps
- Open your WordPress theme
functions.phpfile. - Add the code below at the end of the file.
- Save the file.
- Refresh the WordPress Dashboard.
Done — unnecessary default dashboard widgets will be removed.
⚠️ You can remove or keep specific widgets by adjusting the remove_meta_box() lines as needed.
function remove_dashboard_widgets() {
remove_meta_box('dashboard_quick_press', 'dashboard', 'side');
remove_meta_box('dashboard_primary', 'dashboard', 'side');
remove_meta_box('dashboard_site_health', 'dashboard', 'normal');
remove_meta_box('dashboard_activity', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'remove_dashboard_widgets');