Skip to content

Instantly share code, notes, and snippets.

@eminozlem
Created March 31, 2016 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eminozlem/ae634968903436c508b93a1dc8c07049 to your computer and use it in GitHub Desktop.
Save eminozlem/ae634968903436c508b93a1dc8c07049 to your computer and use it in GitHub Desktop.
Postcode zipcode not required woocommerce
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