Last active
July 14, 2020 09:19
-
-
Save lukecav/d43be5a45dc9ff9c2b2331b420d9e3fd to your computer and use it in GitHub Desktop.
Disable the marketing hub menu item from WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_admin_features', 'disable_features' ); | |
function disable_features( $features ) { | |
$marketing = array_search('marketing', $features); | |
unset( $features[$marketing] ); | |
return $features; | |
} |
Working, thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!