WordPress at Your Fingertips
function is not described

wc_normalize_postcode() WC 2.6.0

Normalize postcodes.

Remove spaces and convert characters to uppercase.

No Hooks.

Return

String.

Usage

wc_normalize_postcode( $postcode );
$postcode(string) (required)
Postcode.

Changelog

Since 2.6.0 Introduced.

Code of wc_normalize_postcode() WC 6.1.1

function wc_normalize_postcode( $postcode ) {
	return preg_replace( '/[\s\-]/', '', trim( wc_strtoupper( $postcode ) ) );
}