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.


Top ↑

Return Return

(string) Formatted postcode.


Top ↑

Source Source

File: includes/class-wc-validation.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.