WP_REST_URL_Details_Controller::get_cache()
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 REST URL Details Controller::get cache WP 6.7.2
private function get_cache( $key ) { return get_site_transient( $key ); }