Automattic\WooCommerce\Caching

CacheException::get_cached_id()publicWC 1.0

Gets the id of the cached object as passed to the exception constructor.

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

Хуков нет.

Возвращает

int|Строку|null. The id of the cached object.

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

$CacheException = new CacheException();
$CacheException->get_cached_id();

Код CacheException::get_cached_id() WC 8.7.0

public function get_cached_id() {
	return $this->cached_id;
}