Used By
Used By | Description |
---|---|
wp-includes/class-wp-user.php: WP_User::set_role() | Set the role of the user. |
Fires after the user’s role has changed.
(int) The user ID.
(string) The new role.
(string[]) An array of the user's previous roles.
Version | Description |
---|---|
3.6.0 | Added $old_roles to include an array of the user's previous roles. |
2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/set_user_role