Skip to content
WooCommerce

How to customize the WooCommerce My Account menu

Rename, remove, reorder and add links in the WooCommerce My Account menu, with safe filter code, an external link example and the traps to avoid.

By WP24×7 engineers7 min readPublished December 15, 2020Updated November 29, 2026

At a glance

A how-to for changing the links in the WooCommerce My Account menu: rename, remove, reorder, add an external link, add a new account page and show links to some customers only. It uses the woocommerce_account_menu_items filter in a child theme or small plugin, lists the default keys, and covers the common traps such as 404s and caching.

Updated November 29, 2026 · For WooCommerce store owners and developers

  • For WooCommerce store owners and developers
  • Method the woocommerce_account_menu_items filter, no plugin edits
  • Where to put code a child theme or a small site plugin
  • Test as a real customer login, not an administrator
  • New pages need Settings, Permalinks, Save once
  • Help WooCommerce specialists can build a custom account area

After a customer logs in, the My Account page shows a menu: Dashboard, Orders, Downloads, Addresses, Account details and Log out. You can rename, remove, reorder or add to those links. Use the `woocommerce_account_menu_items` filter in a child theme or small plugin, and test with a real customer login.

What does the My Account menu actually come from?

WooCommerce builds it from a list of endpoints, each a key and a label, for example orders and "Orders". The same list drives the menu and the sub-pages. Two places control it:

WhereWhat it controlsUse it when
WooCommerce, Settings, AdvancedThe URL slug of each account pageYou only want a different address, or want an endpoint gone completely
woocommerce_account_menu_items filterWhich links appear, their labels and their orderYou want to rename, remove, reorder or add links

Back up first if the site is live, and re-save permalinks after changing a slug.

A store's customer account area with a short, relevant menu

Put the code in a child theme's functions.php or, better, in a small site plugin so it survives a theme change. Never edit the WooCommerce plugin itself, and take a backup before changing a live store.

add_filter( 'woocommerce_account_menu_items', function ( $items ) {
	// Hide Downloads on a store that sells only physical goods.
	unset( $items['downloads'] );

	// Rename a link.
	$items['orders'] = __( 'My purchases', 'my-site' );

	return $items;
} );

The keys you can use by default:

KeyDefault labelNote
dashboardDashboardLanding page of the account
ordersOrdersOrder history
downloadsDownloadsNeeded by anyone who bought a digital product
edit-addressAddressesBilling and shipping
payment-methodsPayment methodsOnly when a gateway supports saved methods
edit-accountAccount detailsName, email, password
customer-logoutLog outKeep it last

Removing a link from the menu does not disable the page, so a customer who knows the address can still reach it. If you want an endpoint gone completely, clear its slug in the Advanced settings.

How do I reorder the menu?

Build a new array in the order you want and keep only keys that exist:

add_filter( 'woocommerce_account_menu_items', function ( $items ) {
	$order = array( 'dashboard', 'orders', 'edit-account', 'edit-address', 'customer-logout' );
	$sorted = array();
	foreach ( $order as $key ) {
		if ( isset( $items[ $key ] ) ) {
			$sorted[ $key ] = $items[ $key ];
		}
	}
	// Keep anything a plugin added that is not in our list.
	return $sorted + $items;
} );

The final + $items matters. It keeps links added by memberships, subscriptions or wishlist plugins, which a hard-coded list would silently drop.

What goes wrong most often?

SymptomLikely causeFix
unset() changes nothingWrong key, for example download instead of downloadsPrint array_keys( $items ) once on a staging site
Plugin links vanishA hard-coded list drops keys added by membership or wishlist pluginsUse filters that preserve unknown keys, as above
Menu ignores the filterThe theme copies myaccount/navigation.php with hard-coded linksMake the override print the menu from the filter
New page returns 404Rewrite rules not flushedSettings, Permalinks, Save
A customer sees another's menuAccount pages are page-cachedExclude My Account, Cart and Checkout from caching

The filter runs for the logged-in user, so you can test their role or data. For example, to show a Wholesale link only to users with a custom role:

add_filter( 'woocommerce_account_menu_items', function ( $items ) {
	$user = wp_get_current_user();
	if ( in_array( 'wholesale_customer', (array) $user->roles, true ) ) {
		$items['wholesale'] = __( 'Wholesale', 'my-site' );
	}
	return $items;
} );

The role name must match one that exists on your site. Remember that hiding a link is not access control. A page that must stay private has to check the user's capability when it renders, because anyone can type the address.

How do I style the menu or add icons?

WooCommerce gives each item a class based on its key, such as woocommerce-MyAccount-navigation-link--orders, and marks the current page with is-active. You can target those in your theme's CSS, for example to add an icon with a ::before rule. Using the existing classes keeps your change small and avoids replacing the template.

What should I test afterwards?

  1. Log in as a customer

    Use a normal customer account, not an administrator, because admins may see differences.

  2. Click every link

    Confirm none returns a 404.

  3. Check a phone

    The menu usually stacks above the content.

  4. Place a test order

    Confirm the Orders page shows it.

  5. Log out

    Use the menu link.

  6. Reset

    Re-save permalinks if you added an endpoint, and clear caches.

Worked example: a store that sells only services

For example, a store sells bookings with no shipping and no downloads. The menu shows Downloads and Addresses that mean nothing to its customers. The owner removes downloads, renames edit-address to "Billing details", adds a link to an existing "Booking help" page, and puts the logout link last. The whole change is about twenty lines in a site plugin, and a customer sees a short, relevant menu instead of a generic one.

What are the other options?

If you do not want to write code, plugins exist that let you edit the account menu from a settings screen. Check how recently they were updated and whether they work with your version of WooCommerce before using one on a live store. Code gives you less to maintain, and a plugin gives you a visual editor.

Want a custom account area built for you?

Describe what customers should see and an engineer will scope it.

FAQ

Questions people ask

12 answers. Can't find yours? Ask an engineer.

Where do I change the My Account menu in WooCommerce?

There is no menu screen for it. The links come from the woocommerce_account_menu_items filter, which you can use from a child theme or a small plugin. The endpoint slugs, such as orders or downloads, are under WooCommerce, Settings, Advanced.

Link to this answer
Will this still work if I use the block-based My Account page?

The filter drives the classic My Account menu that the standard shortcode prints. If you rebuilt the page with blocks or a page builder, check that its navigation uses WooCommerce's account menu, and test the change.

Link to this answer
What are the default My Account menu keys?

The defaults are dashboard, orders, downloads, edit-address, payment-methods (only when a gateway supports saved methods), edit-account and customer-logout. Use these exact keys when you remove, rename or reorder links.

Link to this answer
Should I put this code in functions.php or a plugin?

A small site plugin is better because it survives a theme change. A child theme's functions.php also works. Never edit the WooCommerce plugin itself, since an update would overwrite your change.

Link to this answer
Why did my unset line do nothing?

Usually the key is wrong. The key is downloads, not download. Print array_keys of the items array once on a staging site to see the exact keys, including any added by membership or subscription plugins.

Link to this answer
Can a caching plugin break the My Account menu?

Yes. Cached account pages can show one customer's menu to another. Exclude My Account, Cart and Checkout from page caching and clear caches after you change the menu.

Link to this answer
Do I need code, or is there a plugin for this?

Plugins exist that edit the account menu from a settings screen. Check how recently they were updated and whether they support your WooCommerce version. Code is less to maintain; a plugin gives a visual editor.

Link to this answer
Can WP24x7 build a custom account area for my store?

Yes. A heavily customized account area, such as one combining orders, tickets and downloads, is a job for WooCommerce specialists or custom development. Post a project describing what customers should see and you will get a scoped answer.

Link to this answer

Keep reading

Want an engineer on it?

Tell us what is wrong in plain words. A person reads it, today.