Remove WooCommerce Widgets From the Dashboard
Removes WooCommerce's "Status" and "Recent reviews" boxes from the WordPress dashboard, which also skips the queries they run on every dashboard visit.
Opens WPIDE on
Code
add_action( 'wp_dashboard_setup', function () {
remove_meta_box( 'woocommerce_dashboard_status', 'dashboard', 'normal' );
remove_meta_box( 'woocommerce_dashboard_recent_reviews', 'dashboard', 'normal' );
remove_meta_box( 'wc_admin_dashboard_setup', 'dashboard', 'normal' );
}, 40 );
Notes
Reports remain available under WooCommerce > Reports or Analytics.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.