• Resolved romanostats

    (@romanostats)


    Hello, I have a question about automatically adding a user to the “Registered” group.
    I use registration with Google and Facebook plugin Nextend Social Login.

    How can I add new users directly to the “Registered” group?

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

    (@proaktion)

    Hi,

    Groups adds new users automatically to the Registered group when they are created. If this does not happen, then there seems to be a conflict with the plugin you mention.

    Are you sure that the new accounts are not assigned automatically? I would also recommend to enable debugging and register a new user through that plugin – check the debug.log to see if there are any indicators for errors.

    Technically, the assignment to the Registered group happens when the user_register action fires.

    I’m not familiar with the plugin you mention, but if this does not happen automatically for new accounts that register through that plugin, I guess these could be causes:

    – the plugin creates accounts without firing that action (which would not be a good idea because any plugin relying on the action would fail to do its thing)
    – the plugin fires the action too soon (before Groups can register the hook it uses)

    As a solution, you could add those accounts manually to the Registered group e.g. using bulk actions, see the Memberships documentation page for details.

    But of course that’s not ideal because you’d have to keep doing it for every new account.

    Cheers

    Thread Starter romanostats

    (@romanostats)

    Thanks ??
    In the plugin settings, it was necessary to allow registration using social login.
    Everything works well.

    Plugin Author Kento

    (@proaktion)

    Perfect! ??

    Thread Starter romanostats

    (@romanostats)

    Faced the same problem again.
    I think to solve the issue of adding a user to the Registered group through this plugin.
    https://github.com/itthinx/groups-role-registration/blob/master/groups-role-registration.php

    Please tell me what needs to be edited in the plugin file.
    I tried installing the plugin as is – doesn’t work.

    It may be possible to solve the problem in this way.

    Hi there,

    Good morning. I trust you are well and safe!

    Yes, though that might be an excellent idea to use the plugin to assign the Registered group to new users. However, the plugin also depends on the user_register action, which fires immediately after a new user is registered.

    As Karim mentioned above, Groups by default would assign newly registered users to the Registered group upon registration. If this isn’t happening then there might be a conflict as mentioned above.

    Please try enabling WordPress debugging to see what could be wrong.

    Stay safe and be awesome!
    Best,
    Eugen.

    Plugin Author Kento

    (@proaktion)

    @romanostats You say that plugin doesn’t work, but there are no known issues with it and tests with the latest versions of WordPress and Groups show it works correctly. Please share the entries in your debug.log as suggested.

    Thread Starter romanostats

    (@romanostats)

    The plugin itself works.
    I was talking about groups-role-registration.

    Thread Starter romanostats

    (@romanostats)

    The plugin is already working fine. I don’t know why it didn’t work then.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Registration with Nextend Social Login’ is closed to new replies.