Can I create a simple form that updates custom user fields?
-
Hi All,
WordPress beginner here. Apologies for what I’m sure is a noob question but I’ve been spending days on this and still haven’t figured out a way to do this.
Basically I have created some custom user fields using the ‘Advanced Custom Fields’ plugin and I want to create a simple form on a static page where a user can edit them.
To start simple I have a custom field called ‘isuseractive’ where values can be either True or False. I just want say a simple checkbox on my page and then a ‘Submit’ button which will then set ‘isuseractive’ to True/False (for that user) depending on the checkbox selection.
I’m sure there must be an easy way to do this but I haven’t been able to figure it out and can’t find any plugins that do it either.
Note I did take a look at WPForms but I’m not willing to pay for the pro version to do what I consider is a very easy task. I am almost there myself, I have written a function that updates user metadata in functions.php but I just can’t figure out how to create a form that will pass user arguments to the function from the front end.
Please can you help?
Thanks,
James
- The topic ‘Can I create a simple form that updates custom user fields?’ is closed to new replies.