wp_clean_update_cache

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

Description

wp_clean_update_cache(); 

Usage

  1. if ( !function_exists( 'wp_clean_update_cache' ) ) { 
  2. require_once ABSPATH . WPINC . '/update.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_clean_update_cache(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/update.php  
  1. function wp_clean_update_cache() { 
  2. if ( function_exists( 'wp_clean_plugins_cache' ) ) { 
  3. } else { 
  4. delete_site_transient( 'update_plugins' );