wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_clean_themes_cache › WordPress Function

Da3.5.0
Deprecaton/a
wp_clean_themes_cache ( $clear_update_cache = true )
Parametri:
  • (bool) $clear_update_cache Whether to clear the theme updates cache.
    Richiesto: No
    Default: true
Definito a:
Codex:

Clears the cache held by get_theme_roots() and WP_Theme.



Sorgenti

function wp_clean_themes_cache( $clear_update_cache = true ) {
	if ( $clear_update_cache ) {
		delete_site_transient( 'update_themes' );
	}
	search_theme_directories( true );
	foreach ( wp_get_themes( array( 'errors' => null ) ) as $theme ) {
		$theme->cache_delete();
	}
}