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