Created
March 31, 2016 12:53
-
-
Save eminozlem/ae634968903436c508b93a1dc8c07049 to your computer and use it in GitHub Desktop.
Postcode zipcode not required 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
function my_billing_postcode( $address_fields ) { | |
$address_fields['postcode']['required'] = false; | |
$address_fields['postcode']['label'] = "Posta Kodu"; | |
return $address_fields; | |
} | |
add_filter( 'woocommerce_default_address_fields', 'my_billing_postcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment