Title: How do I set the postal code?
Last modified: August 21, 2016

---

# How do I set the postal code?

 *  [visualxl](https://wordpress.org/support/users/visualxl/)
 * (@visualxl)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/how-do-i-set-the-postal-code/)
 * Hi,
 * I currently set all my shipping address automatically like this:
 *     ```
       // Hook in
       	add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
   
       	// Our hooked in function - $fields is passed via the filter!
       	function custom_override_checkout_fields( $fields ) {
       $fields['shipping']['shipping_first_name']['default'] = 'Jackie';
       	$fields['shipping']['shipping_last_name']['default'] = 'Chan';
       	$fields['shipping']['shipping_company']['default'] = 'Company x';
       	$fields['shipping']['shipping_address_1']['default'] = 'X Road';
       	$fields['shipping']['shipping_address_2']['default'] = '#0X-01';
       	$fields['shipping']['shipping_city']['default'] = 'Singapore';
       	$fields['shipping']['shipping_postcode']['default'] = '123456';
               return $fields;
       }
       ```
   
 * Prior to the recent woo commerce updates, it runs fine. But after the recent 
   updates, the postal cannot is the only value that I cannot set. I need to set
   the default postal code. Please asssit
 * [http://wordpress.org/plugins/woocommerce/](http://wordpress.org/plugins/woocommerce/)

The topic ‘How do I set the postal code?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [default](https://wordpress.org/support/topic-tag/default/)
 * [postcode](https://wordpress.org/support/topic-tag/postcode/)
 * [shipping](https://wordpress.org/support/topic-tag/shipping/)

 * 0 replies
 * 1 participant
 * Last reply from: [visualxl](https://wordpress.org/support/users/visualxl/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/how-do-i-set-the-postal-code/)
 * Status: not resolved