Making Checkout Page Email Optional Not Working
-
Hi Team,
I used the following code to make Email field optional
function make_email_optional_on_checkout_page($fields) { $fields['billing_email']['required'] = false; return $fields; } add_filter('woocommerce_billing_fields', 'make_email_optional_on_checkout_page', 1000, 1);
However, i am still getting this error message when I click on Confirm Order button.
Please provide a valid email address.
How can make this field optional?
I have updated my WordPress to 6.4.1
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Making Checkout Page Email Optional Not Working’ is closed to new replies.