Skip to content

Instantly share code, notes, and snippets.

@maddisondesigns
Last active November 30, 2024 04:12
Show Gist options
  • Save maddisondesigns/3c181896fac41cc1743e46c8c9f3a1bf to your computer and use it in GitHub Desktop.
Save maddisondesigns/3c181896fac41cc1743e46c8c9f3a1bf to your computer and use it in GitHub Desktop.
Remove the WooCommerce Marketing Menu
/**
* Remove the WooCommerce Marketing Menu (which also moves the Coupons menu back under the main WooCommerce Menu item)
*/
function mytheme_remove_marketing_menu($features) {
$marketing = array_search('marketing', $features);
unset($features[$marketing]);
return $features;
}
add_filter('woocommerce_admin_features', 'mytheme_remove_marketing_menu' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment