Fires immediately after a role as been removed from a user.
$user_idint$rolestringwp-includes/class-wp-user.php:595WP_User::remove_role()wp-includes/class-wp-user.php:637WP_User::set_role() * * @since 4.3.0 * * @param int $user_id The user ID. * @param string $role The removed role. */ do_action( 'remove_user_role', $this->ID, $role ); } /** * Sets the role of the user. * * This will remove the previous roles of the user and assign the user theIntroduced in 4.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.