Many WooCommerce websites don’t need the “Downloads” tab in the My Account page. Or maybe the “Addresses” tab needs to be renamed into something more user-friendly 🙂

Well, here are 2 super simple snippets to hide or rename any tabs you have in the My Account page, including custom tabs that are added by plugins such as Account Funds, Subscriptions, and so on.

Simply note down the URL of the tab e.g. “edit-account” (see image) and edit the snippets accordingly. Enjoy!

Hide or Rename a My Account Tab – WooCommerce

PHP Snippet: Hide or Rename a My Account Tab – WooCommerce


/**
* @snippet       Hide Edit Address Tab @ My Account
* @how-to        Get CustomizeWoo.com FREE
* @sourcecode    https://businessbloomer.com/?p=21253
* @author        Rodolfo Melogli
* @testedwith    WooCommerce 3.5.1
* @donate $9     https://businessbloomer.com/bloomer-armada/
*/

add_filter( 'woocommerce_account_menu_items', 'bbloomer_remove_address_my_account', 999 );

function bbloomer_remove_address_my_account( $items ) {
unset($items['edit-address']);
return $items;
}

/**
* @snippet       Rename Edit Address Tab @ My Account
* @how-to        Get CustomizeWoo.com FREE
* @sourcecode    https://businessbloomer.com/?p=21253
* @author        Rodolfo Melogli
* @testedwith    WooCommerce 3.5.1
* @donate $9     https://businessbloomer.com/bloomer-armada/
*/

add_filter( 'woocommerce_account_menu_items', 'bbloomer_rename_address_my_account', 999 );

function bbloomer_rename_address_my_account( $items ) {
$items['edit-address'] = 'Delivery Address';
return $items;
}

If PHP fails… Remove an Endpoint from My Account Settings – WooCommerce

Go to WordPress Dashboard > WooCommerce > Settings > Account, and look for your “account endpoints”.

For example, the official Memberships plugin adds a “Memberships” tab to your My Account page which is controlled by the endpoint “members-area”.

Delete this endpoint, flush your permalinks, and the “Memberships” tab will be deleted. Be really careful with these endpoints, and only delete them if PHP does not work.

Delete an account endpoint in order to hide a My Account tab on the frontend
Share:

Leave a Reply