Last active
March 16, 2021 21:34
-
-
Save Tmeister/89fb9e4bafd759d218847d15a50f3fe8 to your computer and use it in GitHub Desktop.
Make zipcode optional on WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_default_address_fields' , function($fields){ | |
$fields['postcode']['required'] = false; | |
return $fields; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment