Created
November 5, 2021 15:46
-
-
Save maagmirror/9194d2d07442624bcd0d43f13b35647c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Disable zip/postcode field | |
add_filter( 'woocommerce_checkout_fields' , 'nibiru_remove_billing_postcode_checkout' ); | |
function nibiru_remove_billing_postcode_checkout( $fields ) { | |
unset($fields['billing']['billing_postcode']); | |
unset($fields['billing']['billing_state']); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment