Hi there,
Make sure you are using the latest version. If you have checked “Send post-registration email to user to set account password” and “Send new user registration notification email to admin” checkboxes in Advanced Configuration section, new user will receive just the WooCommerce welcome email.
Thread Starter
Anonymous User 15205791
(@anonymized-15205791)
thank you, it worked.
How can I get user first name from social login?
For normal registration this code below works (for displaying user first name in my emails) but for social login, it doesnt.
$current_user = get_user_by('login', $user_login );
$current_user->billing_first_name
If you could tell me a way to get user name, i thank you!
You should use $current_user->display_name to get first name saved via Social Login.
Thread Starter
Anonymous User 15205791
(@anonymized-15205791)
hello, thanks that works, but only for social login.
if normal registration, display_name shows person email address instead of billing first name.
If there a ‘if’ i could add?
Like if “socializer” echo $current_user->display_name
else echo $current_user->billing_first_name
Thanks,
I appreciate so much the help.
Sure. You can use the following condition to check if it’s a social-login user:
if ( get_user_meta( $userId, 'thechamp_social_id', true ) ) { // social login user
Thread Starter
Anonymous User 15205791
(@anonymized-15205791)
Thank you, but it doenst work.
Nothing is displayed… no name.
Thread Starter
Anonymous User 15205791
(@anonymized-15205791)
Hello, just an update.
I solved the problem changing
$current_user->display_name for
$current_user->first_name
Now it works for both, plugin & normal registration.
I would like to ask you, if possible to change line 22 in social-login.php in a next update
from:
$html .= '<div class="the_champ_social_login_title">'. $theChampLoginOptions['title'] .'</div>';
to:
$html .= '<div class="the_champ_social_login_title">'. __ ($theChampLoginOptions['title'] , 'super-socializer') .'</div>';
so translation works in Loco translate, otherwise translation is not shown on frontend.
I think it would be helpful to everyone that needs it to be translated.
If you think it is good, please implement it in a next update.
Again, thanks for all help.
Sure. We will take care of it in next update.