• kostritsaalex

    (@kostritsaalex)


    Hi,

    Thanks for your help in previous post with SSL issue.
    New question here.

    1. I’ve managed to establish a connection – it works. When new user get registered on one site (SERVER), the same user appears on the other site (CLIENT). Which at first glance looks good, but!

    2. When I try to signin under the registered user to CLIENT side, it doesn’t let me in…
    I checked that user and I could see that ROLE doesn’t assigned to it which to me seems that user metadata haven’t been copied properly.

    Thoughts? 🙂

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author giuliopanda

    (@giuliopanda)

    The idea of ​​the plugin was that users were always registered on the “server” site. This way all users register from one place.
    anyway I wrote this filter to be put on the client function to “exclude” groups of users from registration.

    add_filters(‘sucw-roles-to-exclude-sync’, function() {
    return [‘administrator’, ‘my_custom_role’];
    });

    You can try to create a new role that assigns to users who register on the client site and then exclude that role from synchronization with the “server” site.

    To add a new role on wp:

    add_role(‘my_custom_role’,
    __( ‘My Custom Role’ ),
    array( ‘read’ => true, ‘read_private_posts’ => true, )
    );

    I hope this helps you.

Viewing 1 replies (of 1 total)

The topic ‘User created on CLIENT but doesn’t work’ is closed to new replies.