error in v1.0.9 (last name = first name)
-
Hello,
I found an error in the code in v.1.0.9 – in /includes/class-yith-social-login.php lines 393 and 394 should be:
add_user_meta( $user_id, 'billing_last_name', $user_info->lastName, true ); add_user_meta( $user_id, 'shipping_last_name', $user_info->lastName, true );
As it is now ($user_info->firstName) when you create a new user profile via social login both the first and last name get set to the social account’s firstname.
Also, if you also add a user_meta ‘first_name’ and ‘last_name’ the created account would be more complete (those are WordPress’ firstname and lastname), most templates will use these instead of the Woocommerce ones in headers and login widgets (to support non-woocommerce installations as well).
- The topic ‘error in v1.0.9 (last name = first name)’ is closed to new replies.