WC_Countries::__get( mixed $key )

Auto-load in-accessible properties on demand.


Description Description


Parameters Parameters

$key

(Required) Key.


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/class-wc-countries.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.