Remove the SC Commerce dashboard widget

If you are only using SC Commerce as a way to display items with the shop and cart disabled, then the dashboard widget showing a summary of sales is unnecessary. This code removes it.

/**
 * Remove the SC Commerce dashboard widget
 */

function sc_woo_remove_dashboard_widgets() {

  remove_meta_box('woocommerce_dashboard_status', 'dashboard', 'normal'); 

}

add_action('wp_user_dashboard_setup', 'sc_woo_remove_dashboard_widgets', 20);
add_action('wp_dashboard_setup', 'sc_woo_remove_dashboard_widgets', 20);