scribu/wp-front-end-editor — Issue #57: register_editable_option()
Author: scribu
Created: 2012-02-19 10:36:34+00:00
State: open
Labels: feature

Currently, all the details about editing a particular option need to be passed on each request.

It would be safer and more efficient to register them beforehand and just pass the key.

Step 1: in your `functions.php` file, call `register_editable_option()`:

```
register_editable_option( array(
'key' => 'whatever',
'type' => 'rich',
'default' => 'foobar'
) );
```

Then, in your template files, just pass the key:

```

```