Remove tabs like Downloads from the WooCommerce My Account menu and rename others.
add_filter( 'woocommerce_account_menu_items', function ( array $items ): array {
// Remove a tab.
unset( $items['downloads'] );
// Rename a tab.
if ( isset( $items['edit-address'] ) ) {
$items['edit-address'] = 'Addresses';
}
return $items;
} );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
If you don’t sell downloads, the Downloads tab in My Account is just an empty page. This snippet removes tabs you don’t need and renames others.
The woocommerce_account_menu_items filter holds the menu as endpoint => label pairs: dashboard, orders, downloads, edit-address, payment-methods, edit-account and customer-logout. Remove a key to hide the tab or change a value to rename it.
Log in as a customer and open My Account. Downloads should be gone and Addresses should be renamed.