Uses
Uses | Description |
---|---|
wp-includes/cache.php: wp_cache_delete() | Removes the cache contents matching key and group. |
wp-includes/class-wp-theme.php: WP_Theme::__construct() | Constructor for WP_Theme. |
Clears the cache for the theme.
File: wp-includes/class-wp-theme.php
public function cache_delete() { foreach ( array( 'theme', 'screenshot', 'headers', 'post_templates' ) as $key ) { wp_cache_delete( $key . '-' . $this->cache_hash, 'themes' ); } $this->template = null; $this->textdomain_loaded = null; $this->theme_root_uri = null; $this->parent = null; $this->errors = null; $this->headers_sanitized = null; $this->name_translated = null; $this->headers = array(); $this->__construct( $this->stylesheet, $this->theme_root ); }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/cache_delete