Email validation field
-
Using your plugin, I turned off validation for the email field, but still when someone types an email without @ or .com, it throws an error. I want to achieve that the user can type any text in the email field without any validation as to how they can do it?
I also tried adding this code to function.php but it still didn’t work as expected:
add_filter( 'woocommerce_checkout_fields', 'no_email_validation' );
function no_email_validation( $fields ) {
unset( $fields[ 'billing' ][ 'billing_email' ][ 'validate' ] );
unset( $fields[ 'shipping' ][ 'shipping_email' ][ 'validate' ] );
return $fields;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Email validation field’ is closed to new replies.