Registration Email Not Sen
-
Hi,
So I created a php redirect whereby if someone registers he or she gets an automated login….However no user registration email with password is send anymore (also not in the official my-account woocommerce.
How do add it to my php rediret? Here is the code:
function auto_login_new_user( $user_id ) {
wp_set_current_user($user_id);
wp_set_auth_cookie($user_id);
$referrer = $_SERVER[‘HTTP_REFERER’]; // where did the post submission come from?
wp_redirect(preg_replace(‘/\?.*/’, ”, $referrer));
exit();
}
add_action( ‘user_register’, ‘auto_login_new_user’ );The page I need help with: [log in to see the link]
The topic ‘Registration Email Not Sen’ is closed to new replies.