Tutorial

Remove WooCommerce Marketing Hub

Published in May 2020 and kept for reference. WordPress and WooCommerce have changed several times since, so the screenshots and menu paths may not match what you see now.

WooCommerce version 4.1 adds a new top-level menu item labelled Marketing which links to the new WooCommerce Marketing Hub. If you’d like to remove the Marketing Hub from your WordPress installation, the following filter can be applied.

/**
 * Remove WooCommerce Marketing Hub.
 */
function disable_features( $features ) {
	$marketing = array_search( 'marketing', $features );
	unset( $features[$marketing] );
	return $features;
}
add_filter( 'woocommerce_admin_features', 'disable_features' );

The filter above can be inserted using the Code Snippets plugin, a child theme or a custom plugin. If using the Code Snippets plugin, set the function to run in the site administration area.

Credit to Jason Conroy for the above function.

Back to the blog filed under Tutorial · 6 May 2020