um_after_user_role_is_updated

Hook type

Action

Description

Action after user role changed

Parameters

$user_id

(int) User ID

$role

(string) User role

Usage

add_action( 'um_after_user_role_is_updated', 'function_name', 10, 2 );

Examples

<?php
add_action( 'um_after_user_role_is_updated', 'my_after_user_role_is_updated', 10, 2 );
function my_after_user_role_is_updated( $user_id, $role ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_after_user_role_is_updated is located in includes/core/class-roles-capabilities.php::line 223