@adrianortiz80
You can try this code snippet.
Install into your active theme’s functions.php file.
If you have made any changes to the first code snippet you must do the same changes in this code snippet for this line like the C-
or the number 5:
$unique_account_id = 'C-' . str_pad( $user->ID, 5, '0', STR_PAD_LEFT );
After installing this code snippet display one profile page at your site and your new custom ID’s will be generated for your old users.
When the page displays after a while remove the code snippet from functions.php file.
add_action( "init", "um_update_unique_account_id" );
function um_update_unique_account_id() {
$users = get_users();
foreach ( $users as $user ) {
um_fetch_user( $user->ID );
$unique_account_id = um_user( 'um_unique_account_id' );
if( empty( $unique_account_id )) {
$unique_account_id = 'C-' . str_pad( $user->ID, 5, '0', STR_PAD_LEFT );
update_user_meta( $user->ID, "um_unique_account_id", $unique_account_id );
}
UM()->user()->remove_cache( $user->ID );
}
}