Remove the WooCommerce dashboard widget

If you are only using WooCommerce 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 WooCommerce 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);
	
View Raw Code ID: 91146