Last active
November 30, 2024 04:12
-
-
Save maddisondesigns/3c181896fac41cc1743e46c8c9f3a1bf to your computer and use it in GitHub Desktop.
Remove the WooCommerce Marketing Menu
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
/** | |
* 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