Created
January 24, 2018 10:27
-
-
Save grola/dd7d881f28b3a474af7c2801c9128da5 to your computer and use it in GitHub Desktop.
Remove downloads from My Account page in Woocommerce
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
add_action( 'woocommerce_account_menu_items', 'studiowp_woocommerce_account_menu_items' ); | |
function studiowp_woocommerce_account_menu_items( $items ) { | |
unset( $items['downloads'] ); | |
return $items; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment