Docly

How to change checkout URL

Estimated reading: 1 minute 52 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 plugin file

Share this Doc
CONTENTS