Title: Make postal code optional
Last modified: July 8, 2025

---

# Make postal code optional

 *  Resolved [l94l](https://wordpress.org/support/users/l94l/)
 * (@l94l)
 * [8 months, 4 weeks ago](https://wordpress.org/support/topic/make-postal-code-optional/)
 * Hello,
   Is there a way to make postcode optional? We do not need this field, but
   it seems it’s mandatory in WooCommerce and cannot be deactivated with this module.
 * Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [sebastianrybacki](https://wordpress.org/support/users/sebastianrybacki/)
 * (@sebastianrybacki)
 * [8 months, 4 weeks ago](https://wordpress.org/support/topic/make-postal-code-optional/#post-18545855)
 * Hello,
 * Thank you for reaching out to us.
 * You’re right – the postcode field is required by default in WooCommerce and unfortunately,
   it cannot be made optional via the UI in our plugin (Flexible Checkout Fields),
   because WooCommerce explicitly blocks editing the required status of some default
   fields, including the postcode.
 * However, you can make the postcode field optional by adding the following code
   to your theme’s `functions.php` file. Here’s a ready-to-use version:
   [https://textbin.net/nidu862guy](https://textbin.net/nidu862guy)
 * This will make the postcode field optional and prevent WooCommerce from showing
   validation errors, even if the field is left empty or contains a non-standard
   value.
 * Please let me know if you have any further questions.
 * Kind regards,
 *  Plugin Support [sebastianrybacki](https://wordpress.org/support/users/sebastianrybacki/)
 * (@sebastianrybacki)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/make-postal-code-optional/#post-18561077)
 * Hello,
 * I haven’t heard from you in a while, so I’m marking this thread as resolved. 
   Please don’t hesitate to open a new one if you encounter any issues while using
   our plugin.
 * Have a fantastic day,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make postal code optional’ is closed to new replies.

 * ![](https://ps.w.org/flexible-checkout-fields/assets/icon-256x256.gif?rev=2522628)
 * [Flexible Checkout Fields for WooCommerce - WooCommerce Checkout Manager](https://wordpress.org/plugins/flexible-checkout-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-checkout-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-checkout-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-checkout-fields/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [sebastianrybacki](https://wordpress.org/support/users/sebastianrybacki/)
 * Last activity: [8 months, 2 weeks ago](https://wordpress.org/support/topic/make-postal-code-optional/#post-18561077)
 * Status: resolved