Website Building » WooCommerce » How Do You Change Endpoints in WooCommerce?

How Do You Change Endpoints in WooCommerce?

Last updated on January 18, 2023 @ 7:16 am

There are a few different ways that you can change the endpoint in WooCommerce. The first way is by going to the WordPress Dashboard and going to WooCommerce > Settings > Advanced.

From there, you will see a field where you can change the Endpoint URL. The second way is by going to your theme’s functions.php file and adding this code:

function wc_custom_endpoint(){
add_rewrite_endpoint( 'my-custom-endpoint', EP_PAGES );
}
add_action( 'init', 'wc_custom_endpoint' );

You can then change the endpoint URL by going to WordPress Dashboard > Settings > Permalinks and scrolling down to the Custom Endpoints section. The third way is by using a plugin like Custom WooCommerce Endpoints. This plugin will allow you to change the endpoint via the WordPress Dashboard.

PRO TIP: If you are planning to change the endpoint in WooCommerce, be aware that this may cause issues with your site. It is recommend that you backup your site before making any changes.
Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.