I want to redirect to a page after the user’s registration email has been sent.
What is the correct hook?
user_register
is too early, that is the user is entered into the database but the email isn’t send.
Thank you!
I want to redirect to a page after the user’s registration email has been sent.
What is the correct hook?
user_register
is too early, that is the user is entered into the database but the email isn’t send.
Thank you!
You must be logged in to post a comment.
I would use the
registration_redirect
filter. This allows you to set where the user is sent to, but leaves WordPress to perform the redirect (after everything has successfully processed).