Disable the setup dashboard widget in WooCommerce

Disable the setup dashboard widget in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

// Disable setup widget in WooCommerce
function disable_woocommerce_setup_remove_dashboard_widgets() {
	remove_meta_box( 'wc_admin_dashboard_setup', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'disable_woocommerce_setup_remove_dashboard_widgets', 40);