scribu/wp-scb-framework — Issue #8: Forms: Introduce 'default' parameter
Author: scribu
Created: 2012-02-03 15:28:05+00:00
State: open
Labels: feature

If you want to set a default value for 'text' or 'textarea', you use `'value' => 'Foo bar'`.

If you want to set a default value for 'select' or 'radio', you use `'selected' => 'Foo bar'`.

If you want to set a default value for a single checkbox, you use `'checked' => true`.

If you want to set a default value for multiple checkboxes, you use `'checked' => array( 'foo', 'bar' )`.

There should just be a single 'default' parameter, which you can use, just like 'value'.