If you are only using Classic 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 Classic Commerce dashboard widget */ function cc_remove_dashboard_widgets() { remove_meta_box('woocommerce_dashboard_status', 'dashboard', 'normal'); } add_action('wp_user_dashboard_setup', 'cc_remove_dashboard_widgets', 20); add_action('wp_dashboard_setup', 'cc_remove_dashboard_widgets', 20);
View Raw
Code ID: 91146