What does WordPress uses to redirect users from one url to another?

Question

What does WordPress uses to redirect users from one URL to another?

I need to redirect people from /home to /products?latitude=xxx&longitude=xxx after getting the ip of the request and then calling a geolocation api. Is there a way to do this?

in progress 0
Sayaman 2 weeks 2021-05-26T18:55:02-05:00 0 Answer 0 views 0

Answer ( 1 )

    0
    2021-05-30T08:35:37-05:00

    I would recommend looking into the template_redirect hook.

Leave an answer

Browse
Browse