I have made a frontend form for the admins where they can check a checkbox for each user and submit the form data by post.
For all the users that are checked, a value should be changed in a field in the database. The slug for this field could be payment_status
.
What is a method to update or change the value of a field in the database for a specific user?
I have looked at a question like this: Update some database fields when post is saved
And have been trying with the options methods in wordpress.
But I have trouble finding the way to change the value for the specific user. When this is possible for me, it might not be difficult to convert this into repeating the update process for every checked user in the post data.
update_user_meta()
WordPress function?