Display switch input fields.

Code Sample:

array(
    'id'		=> 'switch_field',
    'title'		=> __('Switch Field','text-domain'),
    'details'	=> __('Description of switch field','text-domain'),
    'type'		=> 'switch',
    'default'		=> 'option_2',
    'args'		=> array(
        'option_1'	=> __('Option 1','text-domain'),
        'option_2'	=> __('Option 2','text-domain'),
        'option_3'	=> __('Option 3','text-domain'),
        'option_4'	=> __('Option 4','text-domain'),
    ),
),

 

Preview:

WordPress Option Framework