My account custom fields w/ save button not working
-
Hello,
I am having a pretty hard problem to solve since I am not advanced enough in PHP and woocommerce function understanding. Basically, what I am trying to do is to create a properly functioning custom My Account page with 3 field forms, however, the main struggle is figuring out how to save the fields, and update the metadata.
-
1. I have made a new end-point called “Instagram credentials”
2. Added the Account menu item so it could be pressed and redirected to Instagram credentials.
3. Created the function with fields with PHP & HTML language as per provided templates.
4. I added a button at the end that does nothing because I know nothing about saving.
5. Added check & validation function
6. Added save function.Problem:
-
At step 4. I have a problem understanding how to request an action to actually save the data that is input. I assume the button should request and call the step 5 & 6 but no documentation expresses it or I simply lack the skills.
Here is the code posted in GitHub to conserve the syntax for better reading: https://github.com/showtek320/my-account/blob/master/Instagram-credentials
Any help would greatly be appreciated!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘My account custom fields w/ save button not working’ is closed to new replies.