Remove Unwanted Widgets in WooCommerce

Okay, now we continue with cleaning up WooCommerce admin from the unneeded stuff. In this tutorial I suppose that you or your client does not need all the default widgets that appear after you install the WooCommerce plugin.

And by the way – at the moment of creating this tutorial I didn’t find a list of default WooCommerce widget names anywhere over the internet, which of course surprised me. So I retrieve all the widget names directly from the code.

Let’s come back for a second to a key idea of deregistering a widget which is quite simple:

add_action( 'widgets_init', function(){
	unregister_widget('Widget_Class_Name_Here');
	unregister_widget('Another_Widget_Class_Name_Here');
});

Actually all you have to do is to run unregister_widget() function within widgets_init hook.

And here is the list of WooCommerce widgets.

Read also

Misha Rudrastyh

Misha Rudrastyh

I develop websites since 2008, so it is total of 13 years of experience, oh my gosh. Most of all I love love love to create websites with WordPress and Gutenberg, some ideas and thoughts I share throughout my blog.

Need some developer help? Contact me