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

WP_Theme::cache_delete() WP 3.4.0

Clears the cache for the theme.

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

Хуков нет.

Возвращает

Ничего (null).

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

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

Код WP Theme::cache delete: wp-includes/class-wp-theme.php WP 5.2.1

<?php
public function cache_delete() {
	foreach ( array( 'theme', 'screenshot', 'headers', 'post_templates' ) as $key ) {
		wp_cache_delete( $key . '-' . $this->cache_hash, 'themes' );
	}
	$this->template = $this->textdomain_loaded = $this->theme_root_uri = $this->parent = $this->errors = $this->headers_sanitized = $this->name_translated = null;
	$this->headers  = array();
	$this->__construct( $this->stylesheet, $this->theme_root );
}