WC_Countries::__get
Auto-load in-accessible properties on demand.
Method of the class: WC_Countries{}
No Hooks.
Returns
Mixed.
Usage
$WC_Countries = new WC_Countries(); $WC_Countries->__get( $key );
- $key(mixed) (required)
- Key.
WC_Countries::__get() WC Countries:: get code WC 10.5.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();
}
}