Update a user remove all roles before reassigned
-
Hi
We use the user role editor plugin to manage loyal customers with a new “loyalty” role.
When a new user registers to the loyalty program, the loyalty role is assigned to them. When the role is assigned, the users are added to a loyalty list in our CRM.
We are encountering a problem because on the user detail page in the WordPress backend, if we modify a user (no matter what information), it seems that all the user’s roles are deleted and then reassigned. This poses a problem because on the CRM side, the user is deleted from the loyalty list then reassigned to the list… and CRM automations are based when the user is added to the list, this can become problematic.
Do you have any advice or solutions for us to better manage roles? Are there hooks to manage a user’s update more precisely? In order to check if a role exists before MAJ for example?
Thanks ??
Théo
- You must be logged in to reply to this topic.