WC_Checkout::__isset()publicWC 1.0

See if variable is set. Used to support legacy public variables which are no longer defined.

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

Хуков нет.

Возвращает

true|false.

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

$WC_Checkout = new WC_Checkout();
$WC_Checkout->__isset( $key );
$key(строка) (обязательный)
Key.

Код WC_Checkout::__isset() WC 8.7.0

public function __isset( $key ) {
	return in_array(
		$key,
		array(
			'enable_signup',
			'enable_guest_checkout',
			'must_create_account',
			'checkout_fields',
			'posted',
			'shipping_method',
			'payment_method',
			'customer_id',
			'shipping_methods',
		),
		true
	);
}