title: Make checkout addresses fields not required in WooCommerce
body: <p>In Woocommerce I am trying to make checkout adresses fields not required with the code below… But I've got <a href="https://i.stack.imgur.com/1mfIM.png" rel="nofollow noreferrer">this error</a> "Please enter an address to continue", when submitting checkout form.</p>
  
  <p>My code to set adresses checkout fields not required:</p>
  
  <pre><code>add_filter( 'woocommerce_billing_fields', 'wc_npr_filter_phone', 10, 1 
  );
  function wc_npr_filter_phone( $address_fields ) {
      $address_fields['billing_phone']['required'] = true;
      $address_fields['billing_country']['required'] = false;
      $address_fields['billing_last_name']['required'] = false;
      $address_fields['billing_city']['required'] = false;
      $address_fields['billing_postcode']['required'] = false;
      $address_fields['billing_email']['required'] = false;
      $address_fields['billing_state']['required'] = false;
      $address_fields['billing_address_1']['required'] = false;
      $address_fields['billing_address_2']['required'] = false;
      return $address_fields;
  
  }
  
  //make shipping fields not required in checkout
  add_filter( 'woocommerce_shipping_fields', 
  'wc_npr_filter_shipping_fields', 10, 1 );
  function wc_npr_filter_shipping_fields( $address_fields ) {
      $address_fields['shipping_first_name']['required'] = false;
      $address_fields['shipping_last_name']['required'] = false;
      $address_fields['shipping_address_1']['required'] = false;
      $address_fields['shipping_address_2']['required'] = false;
      $address_fields['shipping_city']['required'] = false;
      $address_fields['shipping_country']['required'] = false;
      $address_fields['shipping_postcode']['required'] = false;
      $address_fields['shipping_state']['required'] = false;
      return $address_fields;
  }
  </code></pre>
  
  <p>The HTML seems to be okay too:</p>
  
  <p><a href="https://i.stack.imgur.com/PbGuv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PbGuv.png" alt="HTML markup screenshot"></a></p>
  
  <p>How to make checkout addresses fields not required in WooCommerce?</p>