ri_gfdp_purge_data

The Gravity Forms Data Persistence Add-On Reloaded ri gfdp purge data function.

Description

ri_gfdp_purge_data(); 

Usage

  1. if ( !function_exists( 'ri_gfdp_purge_data' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-data-persistence-add-on-reloaded/gravity-forms-data-persistence-add-on-reloaded.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ri_gfdp_purge_data(); 
  7.  

Defined (1)

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

/gravity-forms-data-persistence-add-on-reloaded.php  
  1. function ri_gfdp_purge_data() { 
  2. $users = get_users(); 
  3.  
  4. foreach($users as $user) { 
  5. $form['id'] = $_POST['form_id']; 
  6. delete_transient(ri_gfdp_getFormTransientKeyForGF($form, $user->data)); 
  7.  
  8. echo "purged"; 
  9. die();