jpSimkins/Drupal2WordPress-Plugin

Setting user role w/ Drupal 7 import

Opened this issue · 1 comments

diggy commented

Setting user role during import from Drupal 7 did not work for me out of the box. As a quick workaround I included the following after the user meta insertion (here):

$user = new WP_User($dUser['uid']);
$user->set_role($wpUserRole);

Hmm, i'll look into this. Did you get any errors in your error log? I can see I need to check for any errors on that part of the code but was wondering if you found anything in your own error log.