Remove dashboard meta boxes from WordPress admin

// PHP

What it does

Remove dashboard meta box widgets from the WordPress admin area.

The Code

function guyPrimaveraRemoveDashMeta() {
    remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );           // WordPress Blog
    remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );         // Other WordPress News
    remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );  // Incoming Links
    remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );       // Right Now
    remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );       // Quick Press
    remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); // Recent Comments
    remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );     // Recent Drafts
    remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );         // Plugins

add_action( 'wp_dashboard_setup', 'guyPrimaveraRemoveDashMeta' );

How To Use It

Paste this snippet into your theme's functions.php or in a WordPress plugin.