WordPress at Your Fingertips
function is not described

WooCommerce::__get() public WC 1.0

Auto-load in-accessible properties on demand.

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

No Hooks.

Return

Mixed.

Usage

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

Code of WooCommerce::__get() WC 5.6.0

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