um_before_user_role_is_changed

Hook type

Action

Description

Action before user role changed

Usage

add_action( 'um_before_user_role_is_changed', 'function_name', 10 );

Examples

<?php
add_action( 'um_before_user_role_is_changed', 'my_before_user_role_is_changed', 10 );
function my_before_user_role_is_changed() {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_before_user_role_is_changed is located in includes/core/class-roles-capabilities.php::line 158