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.
4 Comments
Not effective with Woo v4.3.2. :-((
Thanks for the heads up momofr. I’ve updated the post with a new filter.
This is great! it worked like a charm! thank you
This disables the default shipping options too (free, local pickup, flat rate) in 8.4.0 – the popup doesn’t open to edit the options, and the toggle doesn’t load.
Comments are closed.