September 23, 2015 at 4:38 pm 72968
|towhid||hi currently, when a guest submits a form on my site, if they are not a user then wp frontend user registers them as a user - wonderful. At the moment the field 'name' on the form goes into display name in the user profile and the new 'user name' that the plugin creates, goes into Nickname How can I change the plugin files so that the 'Name' field that the user creates goes into Nickname in their profile - as opposed to their user name? Id also like to use the full email address as their user name too? Can anyone help?|
September 23, 2015 at 7:06 pm 72992
Ive managed to put their full name into nickname with wp_update_user( array(‘ID’ => $user_id, ‘nickname’ => $guest_name) );
But I cant work out how to use the full email address as username?
Currently when I log a new user my email address email@example.com gets transformed to a user name of marc23 or some other random number. Even though my user doesnt exist as an active user.
September 30, 2015 at 2:58 pm 73532
To use email as username please follow this steps:
Step 1: Please navigate to
Step 2: Find
Step 3: Replace the following line over the previous line.
October 8, 2015 at 2:59 pm 74313
Thank you – that works…much apreciated
October 8, 2015 at 6:16 pm 74330
|towhid||This reply has been marked as private.|