WordPress at Your Fingertips
function is not described

WC_Shipping_Legacy_Local_Pickup::get_valid_postcodes() public WC 1.0

Get postcodes for this method.

{} It's a method of the class: WC_Shipping_Legacy_Local_Pickup{}

No Hooks.

Return

Array.

Usage

$WC_Shipping_Legacy_Local_Pickup = new WC_Shipping_Legacy_Local_Pickup();
$WC_Shipping_Legacy_Local_Pickup->get_valid_postcodes();

Code of WC_Shipping_Legacy_Local_Pickup::get_valid_postcodes() WC 5.9.0

public function get_valid_postcodes() {
	$codes = array();

	if ( '' !== $this->codes ) {
		foreach ( explode( ',', $this->codes ) as $code ) {
			$codes[] = strtoupper( trim( $code ) );
		}
	}

	return $codes;
}