How to change checkout URL

Estimated reading: 1 minute 372 views

Sometimes you may need to redirect your customer to another place after checkout. In this situation, you need to change the default checkout URL. I will show you how can you do that.

We have a filter hook 'wpto_localize_data'. We can change the checkout URL by using that hook. Let's see the code example.

Add that code to your theme/child theme's functions.php file or use the 'Code Snippets' plugin to add that code. 

Click here to see the plugin file

Share this Doc

How to change checkout URL

Or copy link

CONTENTS