Your cart is currently empty!
Nickname imports only on update
—
by
I am using custom column headers to import my users. If I use the column header “meta:nickname”, I can get the Nickname to save, but only on a second pass of importing the users and checking the “Update existing users.” checkbox.
So I import once to create the new users, and the Nickname is showing the email address. Then I import the same exact file but checking the update checkbox, and now the nickname is updated to what I put in that column.
Am I doing something wrong? Is there some way to fix the import to grab the nickname on the first pass?
Posted in Groups Import Export
Comments
2 responses to “Nickname imports only on update”
Hi Giles,
I trust you are well and safe!
Thank you so much for using Groups and for sharing this insight. It is highly appreciated.
STAY SAFE and I wish you a very fine start to the new week!
Be awesome!
Kindest regards,
Eugen.
I actually did find a fix for this, but it involved directly editing the plugin. In wp-content/plugins/groups-import-export/lib/core/class-groups-user-import.php, in the insert_user() function, on line 454, I updated this line:
if ( $meta_key === ‘description’ ) {
to read:
if ( $meta_key === ‘description’ || $meta_key === ‘nickname’) {