I need to validate and save my custom fields in "Edit my account" page. I found template of this page at woocommerce/myaccount/form-edit-account.php
. I managed to add my custom fields in this template file. Now I need to validate them and if it's all good - save user data.
What hook do I need to use in this situation? I can edit class-wc-form-handler.php
but I don't want to.
Thanks
I found out an action hook that can be used to validate custom fields or existing fields on Edit Account page.
Add following code in functions.php.
Try This.
Example :
validation of custom fields at edit account page can be done using this action hook, woocommerce_save_account_details_errors