owc / wp-options
Wordpress helper for creating option pages.
v1.0.2
2015-03-04 20:44 UTC
This package is not auto-updated.
Last update: 2019-08-27 15:24:47 UTC
README
Example:
$options = new Options( 'site_title', 'Site title', array(
'section_1' => array(
'title' => 'Section 1',
'description' => 'Section 1 description',
'fields' => array(
'section_1_field_1' => array(
'title' => 'Field 1',
'type' => 'text',
'value' => ''
),
'section_1_field_2' => array(
'title' => 'Field 1',
'type' => 'text',
'value' => ''
)
)
),
'section_2' => array(
'title' => 'Section 2',
'description' => 'Section 2 description',
'fields' => array(
'section_2_field_1' => array(
'title' => 'Field 1',
'type' => 'text',
'value' => ''
),
'section_2_field_2' => array(
'title' => 'Field 1',
'type' => 'text',
'value' => ''
)
)
)
) );