user metadata in json format, update the data partly only
You cannot use update_user_meta on its own here. You would need to get_user_meta first, decode your json into an array, update the last_seen element of the array, re-encode it and only then update_user_meta. Unless there is a good reason not to, I would consider just saving these as serialized data (to avoid the json step), … Read more