projects
/
WP-Plugins
/
glm-member-db-contacts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9273a13
)
Set nickname for new wp users.
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 2 Aug 2018 19:19:59 +0000
(15:19 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 2 Aug 2018 19:19:59 +0000
(15:19 -0400)
If not given for wp_insert_user it defaults to login name.
Setting it to fname lname.
models/admin/contacts/index.php
patch
|
blob
|
history
diff --git
a/models/admin/contacts/index.php
b/models/admin/contacts/index.php
index
71129b6
..
aec75f0
100644
(file)
--- a/
models/admin/contacts/index.php
+++ b/
models/admin/contacts/index.php
@@
-332,6
+332,7
@@
class GlmMembersAdmin_contacts_index extends GlmDataContacts
'user_pass' => trim($_REQUEST['password']),
'first_name' => $contactInfo['fieldData']['fname'],
'last_name' => $contactInfo['fieldData']['lname'],
+ 'nickname' => $contactInfo['fieldData']['fname'] . ' ' . $contactInfo['fieldData']['lname'],
'role' => $wpRole
)
);