Used By
Used By | Description |
---|---|
wp-includes/class-wp-user.php: WP_User::add_role() | Add role to user. |
Fires immediately after the user has been given a new role.
(int) The user ID.
(string) The new role.
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_user_role