pmpro_reset_update_plugins_cache

Force update of plugin update data when the PMPro License key is updated.

Description

(array) pmpro_reset_update_plugins_cache( (array) $old_value, (string) $value ); 

Returns (array)

$args Amended array of request args.

Parameters (2)

0. $old_value (array)
Array of request args.
1. $value (string)
The URL to be pinged.

Usage

  1. if ( !function_exists( 'pmpro_reset_update_plugins_cache' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/addons.php'; 
  3.  
  4. // Array of request args. 
  5. $old_value = array(); 
  6.  
  7. // The URL to be pinged. 
  8. $value = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = pmpro_reset_update_plugins_cache($old_value, $value); 
  12.  

Defined (1)

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

/includes/addons.php  
  1. function pmpro_reset_update_plugins_cache($old_value, $value)  
  2. delete_option('pmpro_addons_timestamp'); 
  3. delete_site_transient('update_themes');