Welcome email not sending when using custom redirect
-
I am using the following function to redirect users after a successful registration:
function custom_redirect_on_register( $user_id ) { // Send to the pending page wp_redirect( '/url/removed/'); exit; } add_action( 'tml_new_user_registered', 'custom_redirect_on_register', 11);
With the code in place, the redirect works great but no welcome (or admin) email is sent.
With the code removed, the redirect fails but the welcome emails are sent.
Any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Welcome email not sending when using custom redirect’ is closed to new replies.