Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting user role w/ Drupal 7 import #24

Open
diggy opened this issue Oct 25, 2016 · 1 comment
Open

Setting user role w/ Drupal 7 import #24

diggy opened this issue Oct 25, 2016 · 1 comment
Labels

Comments

@diggy
Copy link

diggy commented Oct 25, 2016

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);
@jpSimkins
Copy link
Owner

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.

@jpSimkins jpSimkins added the bug label Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants