WC_Validation::format_postcode()public staticWC 1.0

Format the postcode according to the country and length of the postcode.

Метод класса: WC_Validation{}

Хуков нет.

Возвращает

Строку. Formatted postcode.

Использование

$result = WC_Validation::format_postcode( $postcode, $country );
$postcode(строка) (обязательный)
Postcode to format.
$country(строка) (обязательный)
Country to format the postcode for.

Код WC_Validation::format_postcode() WC 8.7.0

public static function format_postcode( $postcode, $country ) {
	return wc_format_postcode( $postcode, $country );
}