Remover widgets del dashboard wordpress


function _remove_dashboard_widgets() {
 // array global metaboxes array, contiene todos los widgets para wp-admin
 global $wp_meta_boxes;
 // Elimina el widget de "incomming links and dashboard_plugins "
 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);

// Elimina el widget "right now
 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
 unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
 unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
}

add_action('wp_dashboard_setup', '_remove_dashboard_widgets' );

Puede interesarte