Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Yorlinq/572f4fd797d0f7740e0461d8a8b600e3 to your computer and use it in GitHub Desktop.
Save Yorlinq/572f4fd797d0f7740e0461d8a8b600e3 to your computer and use it in GitHub Desktop.
Remove 'Marketing' menu item from admin menu - WooCommerce
// Remove 'Marketing' menu item from admin menu
add_filter('woocommerce_admin_features', function($features) {
return array_values (
array_filter( $features, function($feature) {
return $feature !== 'marketing';
} )
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment