Fires after the user’s role has changed.
Parameters
$user_id
int- The user ID.
$role
string- The new role.
$old_roles
string[]- An array of the user’s previous roles.
Source
do_action( 'set_user_role', $this->ID, $role, $old_roles );
Fires after the user’s role has changed.
$user_id
int$role
string$old_roles
string[]do_action( 'set_user_role', $this->ID, $role, $old_roles );
User Contributed Notes
You must log in before being able to contribute a note or feedback.