• Hello

    Thank you for developing this plugin. For the most part works as expected except when it comes to roles. In my case, to test, I created two users, one with adminstrator role and another with subscriber role. Although the sync occured but both were given the subscriber role.

    Is there a way to also get the roles synced?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi, I use the same plugin, While you wait, here is a link that can help, you will need to install the Ultimate Member plugin.

    https://docs.ultimatemember.com/article/1629-sync-user-data-across-all-sites-in-a-multisite-network-setup#:~:text=In%20a%20Multi%2Dsite%20network,User%20Profile%22%20in%20all%20sites.

    Make sure this is off in your wp-config.php file:

    define(‘WP_ALLOW_MULTISITE’, false);

    If true, then roles don’t sync without code changes. By default on a new wordpress install, this seems to be true.

    @devappau Where do I find this line of code, and will it work when trying to sync between a main site and a subdomain site?

    This goes in your wp-config.php file in the base wordpress directory. It is the WordPress main configuration file.

    Thread Starter sophiejo

    (@sophiejo)

    Thank you very much for your help.

    @devappau Thank you for the suggestion but I do not have this line of code at all. Should I add it myself?

    Thread Starter sophiejo

    (@sophiejo)

    Hi Stephunique

    @devappau has already provided the line of code. If you are familiar with the config.php file and know the correct place, you will add the line of code there. But take care to add it where you are allowed to add line of codes.

    Hi @sophiejo,

    Thanks for the clarification. I thought @devappau meant that I need to change it from “True to “true” to “false” in that line of code and I was looking for that line of code. If I ned to add it myself, then it makes sense why I couldn’t already find it. Thank you all, I’ll give it a try.

    To be clear: Do I need to manuallly add the user role I want synced users to have to the subdomain page and have the synced users inherit it? I thought that the checkbox that says “Merge with existing roles” would mean a new role is created automatically when a user from the main site is synced. Eg if I have a user with user role “Customer” on the main site, when it syncs with the subdomain, a new role called Customer would be created and allocated to this user, if it doesn’t already exist.

    • This reply was modified 4 months, 4 weeks ago by stephunique. Reason: Add more questions
    • This reply was modified 4 months, 4 weeks ago by stephunique. Reason: Better formatting
    Thread Starter sophiejo

    (@sophiejo)

    You should know this plugin won’t work if your setup is a multisite network. But if you have different single sites and you would like to share users between these sites, this is a good solution. If I understand correctly, this plugin can connect users of several single sites, where you use one of the site as the main site and connect the other sites to it. If you search YouTube, I believe you will find a tutorial on this plugin. Good luck.

    I am using it on a subdomain which is essentially a separate, single site and it works, just the user role doesn’t sync, even after I added the line of code.

    musicforte

    (@musicforte)

    You need to set which roles are transferred from the “Outgoing Actions” of the site that is sending the roles. There is a field at the bottom that reads:

    “List of roles to transfer (leave empty to transfer none)”

    Additionally, on the “Incoming actions” of the site that receives the roles, you can optionally check the box that reads, “Merge with existing roles”, depending on your needs.

    Thread Starter sophiejo

    (@sophiejo)

    Thank you very much, @musicforte.

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