Nickname imports only on update

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?

2 Responses to Nickname imports only on update

  1. Eugen Bleck November 22, 2020 at 10:27 pm #

    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.

  2. Amanda Giles November 20, 2020 at 2:46 pm #

    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’) {

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share