Skip to content

Instantly share code, notes, and snippets.

Created May 25, 2022 15:48
What would you like to do?
Removes my account menu items
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