Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::exists()publicWC 1.0

Allows checking whether a key exists.

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

Хуков нет.

Возвращает

true|false. Whether the key exists in the current data registry.

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

$AssetDataRegistry = new AssetDataRegistry();
$AssetDataRegistry->exists( $key );
$key(строка) (обязательный)
The key to check if exists.

Код AssetDataRegistry::exists() WC 8.7.0

public function exists( $key ) {
	return array_key_exists( $key, $this->data );
}