I want to get the form data on save changes button for validation.

I used WC_Admin_Settings::save_fields( $settings ); to save the form fields where $settings have username and password text arrays but before saving I need to get the username and password for verification and if it matches then save else show error message.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.