Remove Pending Shipping Widget from Vendor Dashboard

This snippet removes the entire Pending Shipping section on the Dashboard screen in the Vendor Dashboard. I thought it was a neat concept but actually was just clutter that made the platform look overwhelming. This snippet simply removes the whole section. You can also use this as a starting point to search the WCMp template and remove other sections if you wish.

The next post will show how to make some customizations to that section, which I had done first.

As always, this is either added to your Child Theme’s functions.php file, or consider using the My Custom Functions Pro plugin to manage and organize all your snippets.

add_filter( 'before_wcmp_dashboard_widget', 'filter_before_wcmp_dashboard_widget', 10, 1 );

function filter_before_wcmp_dashboard_widget( $vendor_dashboard_widget ) {
	unset($vendor_dashboard_widget['normal']['wcmp_vendor_pending_shipping']);  //remove Pending Shipping widget
	return $vendor_dashboard_widget;

Tested and working on Woocommerce 4.6.1, WCMp 3.5.10

Is this no longer relevant or not working? Please let us know in the comments!

Comments on this post

Your email address will not be published. Required fields are marked *