Send woocommerce “new account’ email after new user logs in with facebook
-
Is it possible to send woocommerce “new account’ email to the new user after log in with Facebook using the plugin facebook button?
Currently the code below in social-login.php sends the default wordpress new user email even if the login occurred on woocommerce login/register form./** * Send new user notification email */ function heateor_ss_new_user_notification($userId){ global $theChampLoginOptions; $notificationType = ''; if(isset($theChampLoginOptions['password_email'])){ $notificationType = 'both'; }elseif(isset($theChampLoginOptions['new_user_admin_email'])){ $notificationType = 'admin'; } if($notificationType){ wp_new_user_notification($userId, null, $notificationType); } }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Send woocommerce “new account’ email after new user logs in with facebook’ is closed to new replies.