How to hook in after user’s registration email has been sent?

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.

Read More

Thank you!

Related posts

Leave a Reply

1 comment

  1. 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).

    function wpse_139267_registration_redirect( $url ) {
        return site_url( 'thank-you' );
    }
    
    add_filter( 'registration_redirect', 'wpse_139267_registration_redirect' );