But first… what’s a WooCommerce My Account endpoint page title?
An endpoint refers to a specific tab of the “My Account” page, where customers can access various functionalities like viewing their orders, managing downloads, or updating addresses.
Each endpoint is associated with a H1 page title, which is displayed in the browser and helps users identify the content of that page.
For example, the default endpoint title for the orders tab is “Orders”. The page title for the downloads tab is “Downloads”. Pay attention – this is not about the tab label, but it’s the page title when a tab is clicked.
Customizing these endpoint page titles allows you to create a more intuitive and branded experience for your customers, making it easier for them to navigate the account area and find the information they need.
Let’s do it!
PHP Snippet: Edit Active Tab Page Title @ WooCommerce My Account
All you need is getting to know this WooCommerce filter:
return apply_filters( 'woocommerce_endpoint_' . $endpoint . '_title', $title, $endpoint, $action );
…where $endpoint is the endpoint key. Possible keys are:
- ‘order-pay’
- ‘order-received’
- ‘orders’
- ‘view-order’
- ‘downloads’
- ‘edit-account’
- ‘edit-address’
- ‘payment-methods’
- ‘add-payment-method’
- ‘lost-password’
For example, let’s customize the orders tab page title (so I will be using the ‘woocommerce_endpoint_orders_title’ filter):
/**
* @snippet Rename Orders Tab Page Title @ My Account Page
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 9
* @community https://businessbloomer.com/club/
*/
add_filter( 'woocommerce_endpoint_orders_title', 'bbloomer_custom_my_account_endpoint_page_title', 9999, 3 );
function bbloomer_custom_my_account_endpoint_page_title( $title, $endpoint, $action ) {
return 'Shopping Shenanigans: Your Order History Unplugged!'; // LOL
}
And the result:
If you wanted to customize the downloads tab page title, you’d use the ‘woocommerce_endpoint_downloads_title’ filter, and so on.