Skip to content

Instantly share code, notes, and snippets.

Created September 13, 2012 14:55
What would you like to do?
Make the phone number not required in WooCommerce checkout
add_filter( 'woocommerce_billing_fields', 'wc_npr_filter_phone', 10, 1 );
function wc_npr_filter_phone( $address_fields ) {
$address_fields['billing_phone']['required'] = false;
return $address_fields;
Copy link

Exactly what is was looking for! thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment