um_member_role_upgrade
Hook type
Action
Description
Action on user role changed
Parameters
$user_id
(int) User ID
$role
(string) User role
Usage
add_action( 'um_member_role_upgrade', 'function_name', 10, 2 );
Examples
<?php add_action( 'um_member_role_upgrade', 'my_member_role_upgrade', 10, 2 ); function my_member_role_upgrade( $old_role, $new_role ) { // your code here } ?>
Change Log
Since: 2.0
Source
um_member_role_upgrade
is located in includes/core/class-roles-capabilities.php::line 182