WC_Legacy_Webhook::__isset( string $key )

Magic __isset method for backwards compatibility. Legacy properties which could be accessed directly in the past.


Description Description


Parameters Parameters

$key

(Required) Item to check.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/legacy/class-wc-legacy-webhook.php

	public function __isset( $key ) {
		$legacy_keys = array(
			'id',
			'status',
			'post_data',
			'delivery_url',
			'secret',
			'topic',
			'hooks',
			'resource',
			'event',
			'failure_count',
			'api_version',
		);

		if ( in_array( $key, $legacy_keys, true ) ) {
			return true;
		}

		return false;
	}

Top ↑

User Contributed Notes User Contributed Notes

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