WP_Theme::cache_get()privateWP 3.4.0

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 6.5.2

private function cache_get( $key ) {
	return wp_cache_get( $key . '-' . $this->cache_hash, 'themes' );
}