Fires immediately after the user has been given a new role.
$user_idint
$rolestring
do_action( 'add_user_role', $this->ID, $role );
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_user_role