Automattic\WooCommerce\Caching

CacheException::get_cached_id()publicWC 1.0

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

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

No Hooks.

Return

Int|String|null. The id of the cached object.

Usage

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

Code of CacheException::get_cached_id() WC 7.1.0

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