remove_user_role WordPress Action Hook
The remove_user_role hook is used to remove a user role from a user.
do_action( 'remove_user_role', int $user_id , string $role ) #
Fires immediately after a role as been removed from a user.
Parameters
- $user_id
(int)The user ID.
- $role
(string)The removed role.
Source
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |