WC_Countries::__get()publicWC 1.0

Auto-load in-accessible properties on demand.

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

Хуков нет.

Возвращает

Разное.

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

$WC_Countries = new WC_Countries();
$WC_Countries->__get( $key );
$key(разное) (обязательный)
Key.

Код WC_Countries::__get() WC 8.7.0

public function __get( $key ) {
	if ( 'countries' === $key ) {
		return $this->get_countries();
	} elseif ( 'states' === $key ) {
		return $this->get_states();
	} elseif ( 'continents' === $key ) {
		return $this->get_continents();
	}
}