Nuxy
Search…
⌃K

17. Repeater

Add repeater field with all fields available (ex.: text, checkbox, select and even another repeater)
'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'),
),
),
)
),