WooCommerce::__get() public WC 1.0
Auto-load in-accessible properties on demand.
{} Это метод класса: WooCommerce{}
Хуков нет.
Возвращает
Разное.
Использование
$WooCommerce = new WooCommerce(); $WooCommerce->__get( $key );
- $key(разное) (обязательный)
- Key name.
Код WooCommerce::__get() WooCommerce:: get WC 5.0.0
public function __get( $key ) {
if ( in_array( $key, array( 'payment_gateways', 'shipping', 'mailer', 'checkout' ), true ) ) {
return $this->$key();
}
}