How to: Remove dashboard widgets in WordPress

How to: Remove dashboard widgets in WordPress

We used to see lots of widgets on WordPress’s dashboard. By default there is an option called “Screen Option“, to hide them all. But how can we remove or disable them forever?. Here is the simple script for you. This script will remove dashboard widgets in WordPress.

Open your theme’s functions.php file located in your theme’s folder. Copy this script, paste it in your theme’s function.php file and save it. Now got the dashboard page. Wow, everything is gone. Right?.

function remove_dashboard_widgets() {
  global $wp_meta_boxes;

  // For right now information widget

  // For recent comments listing widget

  // For quick press widget

  // For recent drafts widget

  // For Plugin information widget

  // For incoming links information widget

  // For WordPress blog news widget

  // For other WordPress news widget

add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

This script was successfully tested in WordPress 3.2.1. if you like to know more about WordPress dashboard widgets check out WP Codex now.