Try hooking your save function to user_register
, because it could be that the $user_id
you have in your function doesn’t exists yet so there’s no user to attach the meta to.
Try hooking your save function to user_register
, because it could be that the $user_id
you have in your function doesn’t exists yet so there’s no user to attach the meta to.