Automattic\WooCommerce\Caching
ObjectCache::get_random_string
Get a random string to be used to compose the cache key prefix. It should return a different string each time.
Метод класса: ObjectCache{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_random_string(): string;
Код ObjectCache::get_random_string() ObjectCache::get random string WC 11.0.1
protected function get_random_string(): string {
return dechex( microtime( true ) * 1000 ) . bin2hex( random_bytes( 8 ) );
}