Hello @mongolsightseeing ,
WooCommerce adds some of the error messages that you see on the registration page. You will be able to find the registration error messages and their conditions here in this file –
Path: https://github.com/woocommerce/woocommerce/blob/2471f816e4a438adb856a7bd3e332ba12c7ab00b/includes/wc-user-functions.php#L41
I have an example code to use the filter woocommerce_process_registration_errors
and override the default error messages –
function woocommerce_registration_errors( $validation_error, $username, $password, $email ) {
if( empty( $email ) || ! is_email( $email ) ){
$validation_error->add('error', 'Please provide a valid email address custom error.');
}
return $validation_error;
}
add_filter( 'woocommerce_process_registration_errors', 'woocommerce_registration_errors', 10, 4 );
If the error message does not match properly in your site and from the WooCommerce file then any of your plugin/themes is overriding them. Plugins can add/override fields and error messages of WooCommerce’s registration form. So it is always better to check with the plugin developers to get their suggestions.
I hope this information helps.
Thank you ??