Exporting roles for a different site.

Members 2 posts 2 voices

  1. What is the easiest way to export custom roles for a different website?

  2. User roles are stored in the wp_options table under the wp_user_roles option name. Note that wp_ should be replaced with your custom prefix if you’re using one.

    Here’s what that should look like via PHPMyAdmin:

    User roles in the database

    You should be able to merely select that option and hit “Export”. Then, Import it to your online site’s wp_options table.