WordPress\AiClientDependencies\Http\Discovery
ClassDiscovery::getFromCache
Get a value from cache.
Method of the class: ClassDiscovery{}
No Hooks.
Returns
String|null.
Usage
$result = ClassDiscovery::getFromCache( $type );
- $type(string) (required)
- .
ClassDiscovery::getFromCache() ClassDiscovery::getFromCache code WP 7.0
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'];
}