sy4mil/Options-Framework — Issue #12: Backup & Restore Option
Author: sy4mil
Created: 2011-12-06 18:59:59+00:00
State: open

If you noticed the latest SMOF has a new feature called "backup & restore" option, but I didn't include the option to call it in theme-options.php. This was partly because I was planning to release it with a couple more features later, ported to a theme.

If you want to test out this feature however, here's the snippet to make it work. You should put this in theme-options.php, somewhere at the bottom of all other options.

```
// Backup Options
$of_options[] = array( "name" => "Backup Options",
"type" => "heading");

$of_options[] = array( "name" => "Backup and Restore Options",
"desc" => "lalala",
"id" => "aq_backup",
"std" => "",
"type" => "backup",
"options" => 'You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.',
);

```

This option is pretty much stable and I've tested it on several installation of WP 3.2 & 3.3 - so you should be okay to use them in your theme if you like.

Cheers