Skip to content

Instantly share code, notes, and snippets.

@maagmirror
Created November 5, 2021 15:46
Show Gist options
  • Save maagmirror/9194d2d07442624bcd0d43f13b35647c to your computer and use it in GitHub Desktop.
Save maagmirror/9194d2d07442624bcd0d43f13b35647c to your computer and use it in GitHub Desktop.
// 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