# Rename or Remove My Account Menu Items

> Tidies the My Account navigation by renaming items and hiding ones you do not use, such as Downloads on a store without digital products.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, my-account, menu
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-my-account-menu/

## Code

```php
add_filter( 'woocommerce_account_menu_items', function ( $items ) {
    // Endpoint => new label.
    $rename = array(
        'orders'       => 'My orders',
        'edit-address' => 'Addresses',
    );

    // Endpoints to hide.
    $remove = array( 'downloads' );

    foreach ( $remove as $key ) {
        unset( $items[ $key ] );
    }

    foreach ( $rename as $key => $label ) {
        if ( isset( $items[ $key ] ) ) {
            $items[ $key ] = $label;
        }
    }

    return $items;
}, 20 );
```

## Notes

Edit the $rename and $remove lists. Keys are the endpoint names (orders, downloads, edit-address, edit-account).

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Rename or Remove My Account Menu Items" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
