[ Close ] Learn more about our custom WordPress development services at htmlBurger

Documentation

Documentation > Complex Field > Single Group

Single Group

To add a single group of fields you use add_fields($fields), where:

$fields

Numeric array of fields.

Field::make('complex', 'crb_test')
    ->add_fields(array(
        Field::make('text', 'name'),
        Field::make('text', 'job_title'),
    ))

Excited about Carbon Fields? Spread the word!