Title: post code
Last modified: September 24, 2020

---

# post code

 *  Resolved [mohdaljaraba](https://wordpress.org/support/users/mohdaljaraba/)
 * (@mohdaljaraba)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/post-code-3/)
 * Hi,
 * How i can make post code optional not required in checkout page i tried some 
   codes but not working .

Viewing 1 replies (of 1 total)

 *  [jessepearson](https://wordpress.org/support/users/jessepearson/)
 * (@jessepearson)
 * Automattic Happiness Engineer
 * [5 years, 6 months ago](https://wordpress.org/support/topic/post-code-3/#post-13450166)
 * [@mohdaljaraba](https://wordpress.org/support/users/mohdaljaraba/) Post code 
   requirements change based on the country that is chosen.
 * This can be seen in the country list here:
    [https://github.com/woocommerce/woocommerce/blob/4.5.2/includes/class-wc-countries.php#L768](https://github.com/woocommerce/woocommerce/blob/4.5.2/includes/class-wc-countries.php#L768)
 * Some gateway and shipping extensions require this data, as well.
 * If this snippet is added to your functions.php file or through the Code Snippets
   plugin, it should do what you’re looking for:
    [https://gist.github.com/lukecav/ce689f978de321b49d68d9b7e472f8f1](https://gist.github.com/lukecav/ce689f978de321b49d68d9b7e472f8f1)

Viewing 1 replies (of 1 total)

The topic ‘post 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [jessepearson](https://wordpress.org/support/users/jessepearson/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/post-code-3/#post-13450166)
 * Status: resolved