Created
May 25, 2022 15:48
-
-
Save dustinleer/408bf5056548a8fd4e6bd45f0985a315 to your computer and use it in GitHub Desktop.
Removes my account menu items
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
<?php | |
function remove_my_account_menu_items( $items ) { | |
unset( $items['edit-address'] ); | |
unset( $items['orders'] ); | |
unset( $items['downloads'] ); | |
return $items; | |
} | |
add_filter( 'woocommerce_account_menu_items', 'remove_my_account_menu_items' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment