Cancel zip code / postal code as Mandatory

PHOTO EMBED

Fri May 07 2021 18:26:02 GMT+0000 (UTC)

Saved by @Alz #php #wordpress #woocomerce

add_filter( 'woocommerce_default_address_fields' , 'custom_override_postcode_validation' );
 
function custom_override_postcode_validation( $address_fields ) {
  $address_fields['postcode']['required'] = false;
  return $address_fields;
}
content_copyCOPY