Repeatable

Display repeatable input fields for multiple input fields group.

Code Sample:

array(
    'id'		=> 'repeatable_field',
    'title'		=> __('Repeatable Field','text-domain'),
    'details'	=> __('Repeatable Description','text-domain'),
    'type'		=> 'repeatable',
    'collapsible'=>true,
    'fields'    => array(
        array('type'=>'text', 'default'=>'Hello 3', 'item_id'=>'text_field', 'name'=>'Text Field'),
        array('type'=>'select', 'default'=>'option_1', 'item_id'=>'select_field', 'name'=>'Select Field', 'args'=> array('option_1'=>'Option 1', 'option_2'=>'Option 2', 'option_3'=>'Option 3')),

    ),
),

 

Preview:

WordPress Option Framework