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
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_action( 'admin_head', function (){
remove_action( 'in_admin_header', array( 'Automattic\\WooCommerce\\Internal\\Admin\\Loader', 'embed_page_header' ) );
echo '<style>#wpadminbar + #wpbody { margin-top:0 !important; }</style>';
});
Keep in mind that this section may be used for more things in the future. Be prepared to undo this filter if necessary.
Alternatively, you can achieve a similar result using CSS alone by adding this code to your functions.php file:
add_action('admin_head', 'my_custom_css');
function my_custom_css() {
echo '<style>
.woocommerce-layout__header-wrapper {
display: none !important;
}
</style>';
}







