After registration redirect breaks admin email
-
I Had marked another thread resolved, but later found an issue…
I used this:
function tml_new_user_registered( $user_id ) { wp_redirect( site_url( 'after-registration' ) ); exit; } add_action( 'tml_new_user_registered', 'tml_new_user_registered' );
To redirect a user to a custom page after registering, but I also had the site set up for user moderation. Once I added this to the custom php file in plugins, the redirect worked, but it broke the admin approval email.
It took a while, a lot of mucking around, to get the admin approval email working again.
Is there some other way for me to do this redirect without affecting that admin notification?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘After registration redirect breaks admin email’ is closed to new replies.