Created
January 24, 2018 10:27
-
-
Save grola/53dc8bd83a3a4f8d49ffcde84645f1f0 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