WC_Countries::read_geo_property │ private │ WC 1.0

Read the countries or states property from inside the class.

Uses a real property when the object has one, as a plain read would. Otherwise calls __get() directly, because PHP returns null for a magic property that is already being read further up the stack (a locale filter can do that).

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

Хуков нет.

Возвращает

mixed.

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

// private - только в коде основоного (родительского) класса
$result = $this->read_geo_property( $key );
$key(строка) (обязательный)
Property name.

Код WC_Countries::read_geo_property() WC 11.3.0

private function read_geo_property( $key ) {
	return array_key_exists( $key, get_object_vars( $this ) ) ? $this->{$key} : $this->__get( $key );
}