From: Steve Sutton Date: Thu, 2 Aug 2018 19:42:28 +0000 (-0400) Subject: When creating new wp user set nickname 'fname lname' X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6d46545d76f32d3543e1c9800c632027d387a65c;p=WP-Plugins%2Fglm-member-db-contacts.git When creating new wp user set nickname 'fname lname' Setting the nickname of new wordpress users to 'fname lname' --- 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 ) );