onetone_options_backup_restore

// restore onetone options backup.

Description

onetone_options_backup_restore(); 

Usage

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

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_options_backup_restore() { 
  2. if( isset($_POST['key'])) { 
  3. $key = $_POST['key']; 
  4. $options = get_option( 'onetone_options_backup_'.$key ); 
  5. $option_name = optionsframework_option_name(); 
  6. update_option( $option_name, $options ); 
  7. _e('Restore successfully.', 'onetone' ) ; 
  8. exit(0); 
  9.  
  10.