User register hook can’t access form request
There are a number of issues with the user of update_user_meta() in your function. First, you should never write the value directly from $_POST without sanitizing it first. That’s a good way to open yourself up to exploits. (Note: you didn’t indicate the field types, so I’m going to assume they are text input – … Read more