We're using the 'set_user_role' hook to catch a change in user role.
The hook has three parameters. The second parameter is
$role. This should return a string with the role of the user.
We have AAM installed/active. And when we use this hook, the
$role parameter returns an empty string.
I figured: this might have something to do with AAM. And maybe more specific: the setting to give an user multiple roles.
Could you have a check and see if this is a bug?
Thanks in advance!