numer telefonu WooCommerce nie jest wymagany

add_filter( 'woocommerce_billing_fields', 'my_optional_fields' );
 
function my_optional_fields( $address_fields ) {
    $address_fields['billing_phone']['required'] = false;
    return $address_fields;
}
Button