WooCommerce::__get()publicWC 1.0

Auto-load in-accessible properties on demand.

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

Хуков нет.

Возвращает

Разное.

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

$WooCommerce = new WooCommerce();
$WooCommerce->__get( $key );
$key(разное) (обязательный)
Key name.

Код WooCommerce::__get() WC 8.7.0

public function __get( $key ) {
	if ( in_array( $key, array( 'payment_gateways', 'shipping', 'mailer', 'checkout' ), true ) ) {
		return $this->$key();
	}
}