Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Remove unwanted widgets from the WordPress Dashboard. Copy into your theme's functions.php file.
//Remove unwanted widgets from Dashboard
function remove_dashboard_widgets() {
global$wp_meta_boxes;
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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment