Automattic\WooCommerce\Vendor\League\ISO3166

ISO3166::__construct │ public │ WC 1.0

Метод класса: ISO3166{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$ISO3166 = new ISO3166();
$ISO3166->__construct( $countries );
$countries(array<array{name: string, alpha2: string, alpha3: string, numeric: numeric-string, currency: string[]}>)
replace default dataset with given array.
По умолчанию: []

Код ISO3166::__construct() WC 11.2.2

public function __construct(array $countries = [])
{
    if ([] !== $countries) {
        $this->countries = $countries;
    }
}