title: WooCommerce | Set billing field value
body: <p>I want to pre-populate the values for the checkout's billing fields to the DB stored values of the user <strong>before his first purchase</strong>.</p>
  
  <p>I've tried the following code:</p>
  
  <pre><code>add_filter( 'woocommerce_checkout_fields' , function ( $fields ) {
      $fields['billing']['billing_first_name']['placeholder'] = 'First Name';
      $fields['billing']['billing_first_name']['default'] = wp_get_current_user()-&gt;user_firstname;
      return $fields;
  });
  </code></pre>
  
  <p>I've read about this solution in an <a href="https://wordpress.stackexchange.com/questions/219604/woocommerce-how-to-populate-custom-select-field-with-stored-values-on-checkout">other post</a>. Placeholder works great, but the value doesn't.</p>
  
  <p>Also, the <a href="https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/" rel="nofollow noreferrer">WooCommerce Doc</a> (Lesson 1) doesn't say about anything the array value 'default'</p>