Skip to content

Instantly share code, notes, and snippets.

@dustinleer
Created May 25, 2022 15:48
Show Gist options
  • Save dustinleer/408bf5056548a8fd4e6bd45f0985a315 to your computer and use it in GitHub Desktop.
Save dustinleer/408bf5056548a8fd4e6bd45f0985a315 to your computer and use it in GitHub Desktop.
Removes my account menu items
<?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