WP_REST_URL_Details_Controller::get_cache()privateWP 5.9.0

Utility function to retrieve a value from the cache at a given key.

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

Хуков нет.

Возвращает

Разное. The value from the cache.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_cache( $key );
$key(строка) (обязательный)
The cache key.

Список изменений

С версии 5.9.0 Введена.

Код WP_REST_URL_Details_Controller::get_cache() WP 6.5.2

private function get_cache( $key ) {
	return get_site_transient( $key );
}