um_after_member_role_upgrade

Hook type

Action

Description

Action on user registration

Parameters

$new_roles

(array) User new roles

$old_roles

(array) Old roles

Usage

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

Examples

<?php
add_action( 'um_after_member_role_upgrade', 'my_after_member_role_upgrade', 10, 2 );
function my_after_member_role_upgrade( $new_roles, $old_roles ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_after_member_role_upgrade is located in includes/core/class-user.php::line 419