Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.