How to write a simple redirect function
-
Hi,
I know there are plugins that do redirects but I just need it for a single use case so a plugin seems overkill.
Here is what I need:
Redirect
https://mysite1.com/wp-admin/admin-ajax.php?action=wu-terms
to
https://mysite2.com/terms-and-conditions/Can somebody get me started?
I’m a bit worried about messing around with the admin-ajax.php call.
I don’t want to lock myself out of the site or bork it completely.
So adding some pre-function checks would be best:
e.g. user is not logged in
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to write a simple redirect function’ is closed to new replies.