WordPress\AiClientDependencies\Http\Discovery
ClassDiscovery::getFromCache
Get a value from cache.
Метод класса: ClassDiscovery{}
Хуков нет.
Возвращает
string|null.
Использование
$result = ClassDiscovery::getFromCache( $type );
- $type(строка) (обязательный)
- .
Код ClassDiscovery::getFromCache() ClassDiscovery::getFromCache WP 7.1.2
private static function getFromCache($type)
{
if (!isset(self::$cache[$type])) {
return;
}
$candidate = self::$cache[$type];
if (isset($candidate['condition'])) {
if (!self::evaluateCondition($candidate['condition'])) {
return;
}
}
return $candidate['class'];
}