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.

Method of the class: WP_Theme{}

No Hooks.

Return

Mixed. Retrieved data

Usage

// private - for code of main (parent) class only
$result = $this->cache_get( $key );
$key(string) (required)
Type of data to retrieve (theme, screenshot, headers, post_templates)

Changelog

Since 3.4.0 Introduced.

WP_Theme::cache_get() code WP 6.4.3

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