Skip to content

Instantly share code, notes, and snippets.

@lukecav
Last active July 14, 2020 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukecav/d43be5a45dc9ff9c2b2331b420d9e3fd to your computer and use it in GitHub Desktop.
Save lukecav/d43be5a45dc9ff9c2b2331b420d9e3fd to your computer and use it in GitHub Desktop.
Disable the marketing hub menu item from WooCommerce
add_filter( 'woocommerce_admin_features', 'disable_features' );
function disable_features( $features ) {
$marketing = array_search('marketing', $features);
unset( $features[$marketing] );
return $features;
}
@spyrosvl
Copy link

spyrosvl commented May 6, 2020

Thanks!

@lukecav
Copy link
Author

lukecav commented Jul 10, 2020

@tiendungdev
Copy link

Working, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment