WooCommerce 4.1.0 was released yesterday and among the various updates, there’s now a new Marketing tab below the Analytics menu item. This is a new addition to WooCommerce, which they are dubbing the Marketing Hub.
Taking a look at the new section reveals a list of recommended plugins to help store owners get started with marketing their stores. But as of now, that’s about all this page does. I can imagine a day when this section grows to included more usable information, but for now it seems abstract and maybe even pointless.
I have heard rumors that WooCommerce > Coupons may be moving over into this new Marketing Hub, but that hasn’t been confirmed.
Okay let’s just get rid of it for now
How to remove Marketing Hub for WooCommerce <= v4.2
Here’s how to hide the new Marketing Hub menu item. Add the following bit to your functions.php file, or a custom functions plugin:
// Remove Marketing Hub menu item
add_filter( 'woocommerce_marketing_menu_items', '__return_empty_array' );
How to remove Marketing Hub for WooCommerce >= v4.3
WooCommerce 4.3 removed the woocommerce_marketing_menu_items
filter so the above snippet will no longer work. Thankfully we can hook into another filter introduced in WooCommerce 4.0 as such:
add_filter( 'woocommerce_admin_features', function( $features ) {
/**
* Filter list of features and remove those not needed *
*/
return array_values(
array_filter( $features, function($feature) {
return $feature !== 'marketing';
} )
);
} );
Keep in mind that this section may be used for more things in the future. Be prepared to undo this filter if necessary.