do_action( 'remove_user_role', int $user_id, string $role )

Fires immediately after a role as been removed from a user.


Parameters

$user_id

The user ID.

$role

The removed role.


Source

File: wp-includes/class-wp-user.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.3.0 Introduced.