Redirect WordPress website
Hey guys, I'm kinda in a selection process and I have to do some tasks. One of them is to redirect when a checkout happens on a WooCommerce. They gave me the code that would do it and instructions. Problem is: I don't know PHP, I came with a few ways to do it but don't know if it would lead to any problem as I don't know how PHP code works.
This is the code they sent me:
I already changed the product ID, I read that I have to put the requested URL to redirect in the "wp_redirect("url")" but I don't know if doing just that would lead to any problems with the rest of the code. I'm sure it will. Please help.
1 Reply
Im guessing the capital HERE means something, not only it is the place where I change the product ID but I'm guessing where I have to tweak the URL. To clarify: "/card-reading" is the example path that I was given, the URL I need to redirect doesn't have a path, is just the plain URL of bbc.