Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Diego,

    Good afternoon.

    You are correct to mention this would require a custom implementation.

    This section of the documentation would be useful this case.

    Best,
    Eugen.

    Plugin Author Kento

    (@proaktion)

    FYI the plugin in this repository https://github.com/itthinx/groups-role-registration can be a good reference as it adds a newly registered user to a group based on role and creates groups based on role names if needed. Your case seems to be trying to achieve the opposite, i.e. assign roles based on group memberships.

    If you want to achieve something that is more complete, you should also take the following things into account:

    – user is added to a group, the groups_created_user_group action fires
    – user is removed from a group, the groups_deleted_user_group action fires

    If you map roles to groups, then those actions should be taken into account to keep things in sync. The actions are documented here: https://docs.itthinx.com/document/groups/api/actions/

    Thread Starter diegoalvarezc95

    (@diegoalvarezc95)

    Thank you for your answers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Assign some groups to a WP Role?’ is closed to new replies.