onetone_options_backup_delete

// delete onetone options backup.

Description

onetone_options_backup_delete(); 

Usage

  1. if ( !function_exists( 'onetone_options_backup_delete' ) ) { 
  2. require_once '/includes/theme-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = onetone_options_backup_delete(); 
  7.  

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_options_backup_delete() { 
  2.  
  3. if( isset($_POST['key'])) { 
  4. $key = $_POST['key']; 
  5. delete_option( 'onetone_options_backup_'.$key ); 
  6. $keys = get_option('onetone_options_backup'); 
  7.  
  8. foreach ($keys as $k=>$v) 
  9.  
  10. if ($v == $key) { 
  11. unset($keys[$k]); 
  12. update_option('onetone_options_backup', $keys, '', 'no'); 
  13.