Should custom capabilities that are added to a group be automatically assigned to a user profile if they are added to that group?
We have a Woo store that adds customers to a group if they purchase a membership. A successful purchase does add the user to the appropriate group (this part works), but it doesn’t grant the user the capability that the assigned group has in the settings. The capability can get added manually but that defeats the purpose.
We would like to be able to assign the capability automatically once the user is added to the group which has the capability.