WC_Validation::format_postcode( string $postcode, string $country )
Format the postcode according to the country and length of the postcode.
Description Description
Parameters Parameters
- $postcode
-
(Required) Postcode to format.
- $country
-
(Required) Country to format the postcode for.
Return Return
(string) Formatted postcode.
Source Source
File: includes/class-wc-validation.php
public static function format_postcode( $postcode, $country ) { return wc_format_postcode( $postcode, $country ); }