I have a problem with wp_redirect which does seem to redirect. It's a full url that is on the current website. I need to put exit(); after wp_redirect for it to redirect. Is this normal? Redirect is in an init action btw.


The only thing wp_redirect() is adding HTTP header to the current request. It doesn't prevent request from proceeding to further loading page and must be followed by exit statement to work correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.