Website Building » WooCommerce » How Do I Add Custom Endpoints to My Account Page in WooCommerce?

How Do I Add Custom Endpoints to My Account Page in WooCommerce?

Last updated on October 1, 2022 @ 1:06 pm

If you’re running a WooCommerce store, you’ve probably noticed that there’s a lot of information displayed on the “My Account” page by default. This includes the customer’s name, email address, recent orders, etc.

While this information is useful, you might want to display additional data on this page. For example, you might want to show the customer’s shipping address or phone number.

Fortunately, WooCommerce makes it easy to add custom endpoints to the “My Account” page. In this article, we’ll show you how to do that.

First, you need to login to your WordPress dashboard and go to WooCommerce > Settings. On the Settings page, select the Advanced tab and then click on the Accounts link.

On the Accounts settings page, scroll down to the Add New Endpoint section. Here, you need to enter a slug for your endpoint (this is what will be displayed in the URL), and a description for it.

PRO TIP: If you are not a developer or comfortable with code, we do not recommend adding custom endpoints to your account page in WooCommerce. This can cause unexpected errors and break your website.

Next, click on the Add endpoint button. Once you’ve done that, your endpoint will be added and you can start adding content to it.

If you want to display a form on your endpoint, you can use the following code:

[woocommerce_my_account]

This shortcode will display a form where customers can enter their information. Of course, you can also add other content to this endpoint as well. For example, if you want to display a list of products, you can use this code:

[products]
Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.