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.
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. |
Code of WP_Theme::cache_get() WP Theme::cache get WP 5.6
private function cache_get( $key ) {
return wp_cache_get( $key . '-' . $this->cache_hash, 'themes' );
}