Opens in a new tab

Save $50 Every Year with MainWP

Get $50 off the MainWP Yearly Plan this Black Friday. Your discount renews every year! Claim Your $50 Discount
← Back to blog

How to Hide the Setup Dashboard Widget in WooCommerce

This post may contain affiliate links. Read the disclosure.

WooCommerce recently added a setup dashboard widget which is loaded in the WooCommerce admin and would display in wp-admin.

If you want to remove the extra dashboard widget bloat from displaying for clients then you can easily remove it using a code snippet. Even in the current version of the WooCommerce 5.7.1 the dashboard widget is added extra dashboard widgets in wp-admin.

MainWP has a solid and easy-to-use extension for code snippets that you can save and execute code snippets to run on all connected child sites. This would be a good code snippet to have enabled on all child sites which are running WooCommerce on them.

The code snippet to use is;

// 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);

With the code snippet being executed on all connected child sites it will free up some of the space in wp-admin and keep the default screen clearer for clients. Extra dashboard widgets loading in wp-admin can increase default load times and in the case of the setup, the dashboard widget make it less clear for customers when a site has already been setup and is live.

Explore MainWP Pro
Get MainWP Pro
Topics: Tips & Tricks