WC_Checkout::__isset( string $key )

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


Description Description


Parameters Parameters

$key

(Required) Key.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-checkout.php

	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
		);
	}

Top ↑

User Contributed Notes User Contributed Notes

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