Connect with us


How to Hide the Setup Dashboard Widget in WooCommerce



How to Hide the Setup Dashboard Widget in WooCommerce

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.

Manage all your WordPress sites with the MainWP Dashboard

WordPress Management for Professionals

All MainWP Pro Extensions are available through one of our convenient bundled packages.

Source link

Continue Reading
Click to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.