WC_Countries::__get()publicWC 1.0

Auto-load in-accessible properties on demand.

Method of the class: WC_Countries{}

No Hooks.

Return

Mixed.

Usage

$WC_Countries = new WC_Countries();
$WC_Countries->__get( $key );
$key(mixed) (required)
Key.

WC_Countries::__get() code WC 9.4.2

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();
	}
}