Automattic\WooCommerce\Blocks\Assets
AssetDataRegistry::exists()
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() AssetDataRegistry::exists WC 7.5.1
public function exists( $key ) { return array_key_exists( $key, $this->data ); }