From 6d46545d76f32d3543e1c9800c632027d387a65c Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 2 Aug 2018 15:42:28 -0400 Subject: [PATCH] When creating new wp user set nickname 'fname lname' Setting the nickname of new wordpress users to 'fname lname' --- models/admin/contacts/index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/models/admin/contacts/index.php b/models/admin/contacts/index.php index 9ffb3ba..f3c82f8 100644 --- a/models/admin/contacts/index.php +++ b/models/admin/contacts/index.php @@ -338,10 +338,11 @@ class GlmMembersAdmin_contacts_index extends GlmDataContacts array( 'user_email' => $contactInfo['fieldData']['email'], 'user_login' => $contactInfo['fieldData']['username'], - 'user_pass' => trim($_REQUEST['password']), + 'user_pass' => trim($_REQUEST['password']), 'first_name' => $contactInfo['fieldData']['fname'], - 'last_name' => $contactInfo['fieldData']['lname'], - 'role' => $wpRole + 'last_name' => $contactInfo['fieldData']['lname'], + 'nickname' => $contactInfo['fieldData']['fname'] . ' ' . $contactInfo['fieldData']['lname'], + 'role' => $wpRole ) ); -- 2.17.1