get_user_meta and umeta_id
You can fix this in 1 of 2 ways: change the call to add_user_meta() to update_user_meta() when your 1st conditional evals to true. As explained in update_user_meta(), “If the meta field for the user does not exist, it will be added.” pass true as the $unique (4th) param to add_user_meta(). As explained in add_user_meta(), the … Read more