WordPress at Your Fingertips
function is not described

WC_Countries::__get() public WC 1.0

Auto-load in-accessible properties on demand.

{} It's a method of the class: WC_Countries{}

No Hooks.

Return

Mixed.

Usage

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

Code of WC_Countries::__get() WC 5.6.0

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