Merge pull request #17291 from michaelrimbach/patch-1
Format PL (Poland) Postal Code
This commit is contained in:
commit
ec6379a6ec
|
@ -839,6 +839,9 @@ function wc_format_postcode( $postcode, $country ) {
|
||||||
case 'US' :
|
case 'US' :
|
||||||
$postcode = rtrim( substr_replace( $postcode, '-', 5, 0 ), '-' );
|
$postcode = rtrim( substr_replace( $postcode, '-', 5, 0 ), '-' );
|
||||||
break;
|
break;
|
||||||
|
case 'PL' :
|
||||||
|
$postcode = trim( substr_replace( $postcode, '-', 2, 0 ) );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return apply_filters( 'woocommerce_format_postcode', $postcode, $country );
|
return apply_filters( 'woocommerce_format_postcode', $postcode, $country );
|
||||||
|
|
Loading…
Reference in New Issue