WordPress at a glance

wp_clean_update_cache() WP 1.0

Clear existing update caches for plugins, themes, and core.

No Hooks.

Return

Null. Nothing.

Usage

wp_clean_update_cache();

Changelog

Since 4.1.0 Introduced.

Code of wp clean update cache: wp-includes/update.php WP 5.2.4

<?php
function wp_clean_update_cache() {
	if ( function_exists( 'wp_clean_plugins_cache' ) ) {
		wp_clean_plugins_cache();
	} else {
		delete_site_transient( 'update_plugins' );
	}
	wp_clean_themes_cache();
	delete_site_transient( 'update_core' );
}

Related Functions

From tag: update

More from tag: cache (caching)

No comments
    Hello, !     Log In . Register