Change WordPress user roles and capabilities Forums How to or FAQ Export roles and import to a new role

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7829
    pixelcrash
    Participant

    Hi there, I have around 15 types of roles (because of WPML / Toolset and 15 languages)
    I would like to export one role and then import it at another role

    f.e.
    editor_poland (has all correct settings) -> Export -> poland.dat
    change to editor_spain -> import

    But it only imports the editor_poland
    any change to apply the same capabilities to the another role?

    #7830
    Vladimir
    Keymaster

    Hi,

    Exported file contains role ID/name inside.

    Workaround – after you import role editor_poland, click ‘Add Role’, input new ID, name, and select “editor_poland” at the “Make copy of” drop-down list. That’s it.

    #7831
    pixelcrash
    Participant

    Is there also a workaround if you already have all the roles created?

    #7832
    Vladimir
    Keymaster

    Unfortunately, No. Or just delete theme and create again as a copy of existing one.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.