diff --git a/includes/wc-formatting-functions.php b/includes/wc-formatting-functions.php index 843bd79eec5..850319c001c 100644 --- a/includes/wc-formatting-functions.php +++ b/includes/wc-formatting-functions.php @@ -839,6 +839,9 @@ function wc_format_postcode( $postcode, $country ) { case 'US' : $postcode = rtrim( substr_replace( $postcode, '-', 5, 0 ), '-' ); break; + case 'PL' : + $postcode = trim( substr_replace( $postcode, '-', 2, 0 ) ); + break; } return apply_filters( 'woocommerce_format_postcode', $postcode, $country );