->addGroup('group_field', [
'label' => __('Group Field', 'djx'),
'instructions' => '',
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'layout' => 'block',
])
Official Documentation
->addRepeater('repeater_field', [
'label' => __('Repeater Field', 'djx'),
'instructions' => '',
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'min' => 0,
'max' => 0,
'layout' => 'table',
'button_label' => __('Add', 'djx'),
])
Official Documentation
->addText('text_field', [
'label' => __('Text Field', 'djx'),
'instructions' => '',
'required' => 0,
'wrapper' => ['width' => '100'],
'default_value' => '',
'placeholder' => '',
'maxlength' => '',
])
Official Documentation
->addTextarea('textarea_field', [
'label' => __('Textarea Field', 'djx'),
'instructions' => '',
'required' => 0,
'wrapper' => ['width' => '100'],
'default_value' => '',
'placeholder' => '',
'maxlength' => '',
'rows' => '',
'new_lines' => 'br',
])
Official Documentation
->addNumber('number_Field', [
'label' => __('Number Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'default_value' => '',
'placeholder' => '',
'min' => '',
'max' => '',
'step' => '',
])
->addEmail('email_field', [
'label' => __('Email Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
])
->addLink('link_field', [
'label' => __('Link Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'return_format' => 'array',
])
Official Documentation
->addWysiwyg('html_content', [
'label' => __('WYSIWYG Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'default_value' => '',
'tabs' => 'Visual and Text',
'toolbar' => 'full',
'media_upload' => 0,
'delay' => 1,
])
Official Documentation
->addSelect('select_field', [
'label' => __('Select Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'choices' => [
'key-1' => 'Value 1',
],
'default_value' => ['key-1'],
'allow_null' => 0,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => '',
])
Official Documentation
->addRadio('radio_field', [
'label' => __('Radio Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'choices' => [
'key-1' => 'Value 1',
],
'allow_null' => 0,
'default_value' => '',
'layout' => 'vertical',
'return_format' => 'value',
])
Official Documentation
->addTrueFalse('truefalse_field', [
'label' => __('True / False Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'default_value' => 0,
'ui' => 1,
'ui_on_text' => '',
'ui_off_text' => '',
])
Official Documentation
->addImage('image_field', [
'label' => __('Image Field', 'djx'),
'instructions' => __('Aspect-Ratio', 'djx') . ': WWWxHHH',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'return_format' => 'array',
'preview_size' => 'thumbnail',
'library' => 'all',
'min_width' => '',
'min_height' => '',
'min_size' => '',
'max_width' => '',
'max_height' => '',
'max_size' => '',
])
Official Documentation
->addFile('file_Field', [
'label' => __('File Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'return_format' => 'array',
'library' => 'all',
'min_size' => '',
'max_size' => '',
'mime_types' => '',
])
Official Documentation
->addDatePicker('date_picker_date', [
'label' => __('Date Picker Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'display_format' => 'd/m/Y',
'return_format' => 'Ymd',
'first_day' => 1,
])
Official Documentation
->addTaxonomy('taxonomy_field', [
'label' => __('Taxonomy Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'taxonomy' => 'category',
'field_type' => 'select',
'allow_null' => 1,
'add_term' => 0,
'save_terms' => 1,
'load_terms' => 1,
'return_format' => 'id',
'multiple' => 0,
])
Official Documentation
->addPostObject('post_object_field', [
'label' => __('Post Object Field', 'djx'),
'instructions' => '',
'required' => 0,
'conditional_logic' => [],
'wrapper' => ['width' => '100'],
'post_type' => [],
'taxonomy' => [],
'allow_null' => 0,
'multiple' => 0,
'return_format' => 'object',
'ui' => 1,
])
Official Documentation