WC_Shipping_Legacy_Local_Pickup::get_valid_postcodes()publicWC 1.0

Get postcodes for this method.

{} Это метод класса: WC_Shipping_Legacy_Local_Pickup{}

Хуков нет.

Возвращает

Массив.

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

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

Код WC_Shipping_Legacy_Local_Pickup::get_valid_postcodes() WC 6.4.1

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

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

	return $codes;
}