Last active
January 1, 2021 16:01
-
-
Save ibrahimmumcu/e351381aa85ae96a79f9585cbc03dc0c to your computer and use it in GitHub Desktop.
Woocommerce - Remove "downloads" from my account menu items
This file contains hidden or 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
<?php | |
add_filter( 'woocommerce_account_menu_items', 'custom_remove_downloads_my_account', 999 ); | |
function custom_remove_downloads_my_account( $items ) { | |
unset($items['downloads']); | |
return $items; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment