• Resolved bobreus

    (@bobreus)


    Hi,

    I found a small error in the documentation. The documentation states that “If you create a column called ‘role’:”

    So I named the column ‘role’, but then it didn’t import the roles. When I changed it to ‘Roles’, it worked. Hope this saves someone else some time ??

    And to the dev: Could you update the documentation in the next update? Thanks! Other than this small error, your plugin has been a lot of help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @bobreus,

    Good morning, thanks for your email and for contacting us.

    I have been reading the code and it seems to be “Role” and not “Roles” the column, look at this piece of code:
    $role_position = $positions["role"];

    Where “role” is the name of the first column. Are you using the last version?

    Thanks for your message.

    Thread Starter bobreus

    (@bobreus)

    Hmm, strange. I’m using version 1.10.9.1.

    I tested it again. I think that when I used ‘Roles’, it just used the default role I chose (Author, same as in the csv-file). So ‘Roles’ doesn’t work. But if I use ‘role’, it doesn’t assign any roles at all. Not the default ones, nor the one in the csv-file. What am I doing wrong?

    Plugin Author Javier Carazo

    (@carazo)

    @bobreus,

    If you use the role column into the CSV you have to use the role “slug”.

    Thread Starter bobreus

    (@bobreus)

    That did the trick. Thank you!

    Small suggestion: Maybe add a role column to the example csv?

    Plugin Author Javier Carazo

    (@carazo)

    @bobreus,

    Yes this will be a good idea.

    Also an example with WooCommerce format.

    I take note of this and I will include it in a new version.

    Plugin Author Javier Carazo

    (@carazo)

    I mark it as solved.

    Thanks for using our plugin, please help us giving a good review or sending a little donation.

    Hi there,

    When I input Role in the CSV, the capabilities populate with the comma added values. Is there a way to make this populate the new roles that I assign?

    thanks,
    Chris

    Plugin Author Javier Carazo

    (@carazo)

    @cward84,

    Sorry I don’t understand your question.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Roles – documentation error found’ is closed to new replies.