WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Theme::cache_delete() public WP 3.4.0

Clears the cache for the theme.

Это метод класса: WP_Theme{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WP_Theme = new WP_Theme();
$WP_Theme->cache_delete();

Список изменений

С версии 3.4.0 Введена.

Код WP_Theme::cache_delete() WP 5.5.1

wp-includes/class-wp-theme.php
<?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 );
}