Support » Plugins and Hacks » Add first/last name to customer-new-account email template
2 years, 3 months ago
I think this says it to the point. Happy to answer any questions.
2 years ago
By default woocommerce does not add a first name upon creation of the account.
This was my solution to getting it working if you still need it 🙂
add this to functions.php
$new_customer_data['first_name'] = isset( $_POST['billing_first_name'] ) ? trim( $_POST['billing_first_name'] ) : '';
$user_email = $user_login;
$user = get_user_by('login', $user_login);
$first_name = get_user_meta($user->ID, 'first_name', true);
1 year, 5 months ago
Do you know how to add last name to it?
So we have first+ last name on new account creation?
edit: I did try the code, it’s not working.