• Resolved plugins_lexblog

    (@plugins_lexblog)


    Hey Ulrich,

    I found that user meta fields were not importing when importing new users. I did some debugging, which you can see is commented out below (near line 300).

    Basically, it looks like the plugin was passing a value of “1” for $user_id below. In my second debug string, it was actually passing the proper ID number for the new user:

    if ( $usermeta ) {
    //wp_die('test');
    foreach ( $usermeta as $metakey => $metavalue ) {
    $metavalue = maybe_unserialize( $metavalue );
    update_user_meta( $user_id, $metakey, $metavalue );
    //wp_die('id: '.$user->ID.', metakey: '.$metakey.', metavalue: '.$metavalue);
    }
    }

    However, as a quick fix, I simply added the meta fields I needed to your predefined array at line 195.

    Would you consider addressing this in an update?

    http://wordpress.org/extend/plugins/import-users-from-csv/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘User Meta not importing’ is closed to new replies.