WP_Theme::cache_get
Gets theme data from cache.
Cache entries are keyed by the theme and the type of data.
Метод класса: WP_Theme{}
Хуков нет.
Возвращает
Разное. Retrieved data
Использование
// private - только в коде основоного (родительского) класса $result = $this->cache_get( $key );
- $key(строка) (обязательный)
- Type of data to retrieve (theme, screenshot, headers, post_templates).
Список изменений
| С версии 3.4.0 | Введена. |
Код WP_Theme::cache_get() WP Theme::cache get WP 6.9.1
private function cache_get( $key ) {
return wp_cache_get( $key . '-' . $this->cache_hash, 'themes' );
}