Created
April 8, 2020 17:05
-
-
Save mio31337/3f4a7860578a68df8153f09cb8c81a43 to your computer and use it in GitHub Desktop.
WooCommerce: Remove downloads tab in My Account
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 downloads tab in My Account | |
* Author: MarioMarkovic.com | |
*/ | |
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