Add repeater field with all fields available (ex.: text, checkbox, select and even another repeater)
Last updated 3 years ago
'field_t' => array( 'type' => 'repeater', 'label' => esc_html__( 'Repeater fields', 'my-domain' ), 'fields' => array( 'field_1' => array( 'type' => 'text', 'label' => esc_html__( 'Text 1', 'my-domain' ), ), 'field_2' => array( 'type' => 'select', 'label' => esc_html__( 'Select 2', 'my-domain' ), 'options' => array( 'text' => esc_html__('Text', 'my-domain'), 'video' => esc_html__('Video', 'my-domain'), 'slide' => esc_html__('Slide', 'my-domain'), ), ), ) ),