Skip to main content
Login Join
Snippet · PHP

Disable WordPress Dashboard Widgets

Shared by Amit Dholiya · June 17, 2026

15 views
Back to Snippets

WordPress displays several default dashboard widgets that many users never use. Removing them creates a cleaner admin area, especially for clients.

Steps

  1. Open your WordPress theme functions.php file.
  2. Add the code below at the end of the file.
  3. Save the file.
  4. 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');
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments