Hi @brening
Have you tried catching the submitted data with $_REQUEST?
Regards,
No, I get the parameters as hook parameters.
Hi @brening
Did you assign a role to your Register form? Or a role field has been added to your registration form?
Regards,
I did assign a role to Register form.
Hi @brening
Sorry for the late response. Just checking if you’ve found the solution to your issue? Does the role have the ability to manage options or read users and post?
You can also try retrieving the role with the following code snippets:
add_action("um_after_user_updated,"um_061821_catch_role",10,2);
function um_061821_catch_role( $user_id, $args, $userinfo ){
um_fetch_user( $user_id );
$role = um_user("role");
}
Regards,
Hello. Yes, I did something similar, but it was more convenient when this parameter was passed. Too many extra requests are received.
Hi @brening
There was a security vulnerability issue when passing the role via um_after_user_updated so the above code snippet should be used to retrieve the user role.
Regards,