WordPress at Your Fingertips
function is not described

WP_Theme::cache_get() private WP 3.4.0

Gets theme data from cache.

Cache entries are keyed by the theme and the type of data.

{} It's a method of the class: WP_Theme{}

No Hooks.


Mixed. Retrieved data


// 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)


Since 3.4.0 Introduced.

Code of WP_Theme::cache_get() WP 5.7.2

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