Answers for "Make a Woo required field not required"

PHP
0

Make a Woo required field not required

add_filter( 'woocommerce_billing_fields', 'wc_unrequire_wc_phone_field');
function wc_unrequire_wc_phone_field( $fields ) {
$fields['billing_phone']['required'] = false;
return $fields;
}
Posted by: Guest on October-08-2021

Code answers related to "Make a Woo required field not required"

Browse Popular Code Answers by Language