We'll create fresh WordPress site with Register Settings API installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Add settings to your own theme or plugin. As simple as writing an array.
Full documentation at: http://www.wp-load.com/register-settings-api/
add_filter('register_settings_api', 'settings_array');
function settings_array( $options_page ) {
$options_page['my-menu-slug'] = array(
'menu_title' => 'My menu',
'page_title' => 'My page',
'option_name' => 'my_options_slug',
'tabs' => array(
'first' => array(
'tab_title' => 'My first tab',
'fields' => array(
'my_editor' => array(
'type' => 'tinymce',
'title' => 'My editor'
),
'my_color' => array(
'type' => 'color',
'title' => 'My color'
)
),
),
'second' => array(
'tab_title' => 'My second tab',
'fields' => array(
'my_textarea' => array(
'type' => 'textarea',
'title' => 'My textarea'
)
)
)
)
);
return $options_page;
}