WordPress at a glance
function is not described

wc_normalize_postcode() WC 2.6.0

Normalize postcodes.

Remove spaces and convert characters to uppercase.

No Hooks.

Return

String. Nothing.

Usage

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

Changelog

Since 2.6.0 Introduced.

Code of wc_normalize_postcode() WC 5.3.0

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