This is a overview of all default attributes associated with the different ACF(pro) fields. This Cheatsheet is quite handy when creating ACF fields with the StoutLogic Acf Builder.
Last update: 27/09/2017 ACF version: 5.6.2
$attributes = [
'default_value' => '',
'maxlength' => '',
'placeholder' => '',
'prepend' => '',
'append' => ''
];
$attributes = [
'default_value' => '',
'new_lines' => '',
'maxlength' => '',
'placeholder' => '',
'rows' => ''
];
$attributes = [
'default_value' => '',
'min' => '',
'max' => '',
'step' => '',
'placeholder' => '',
'prepend' => '',
'append' => ''
];
$attributes = [
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => ''
];
$attributes = [
'default_value' => '',
'placeholder' => '',
];
$attributes = [
'placeholder' => '',
'prepend' => '',
'append' => '',
];
$attributes = [
'default_value' => '',
'min' => '',
'max' => '',
'step' => '',
'prepend' => '',
'append' => ''
];
$attributes = [
'tabs' => 'all',
'toolbar' => 'full',
'media_upload' => 1,
'default_value' => '',
'delay' => 0
];
$attributes = [
'width' => '',
'height' => '',
];
$attributes = [
'return_format' => 'array',
'preview_size' => 'thumbnail',
'library' => 'all',
'min_width' => 0,
'min_height' => 0,
'min_size' => 0,
'max_width' => 0,
'max_height' => 0,
'max_size' => 0,
'mime_types' => ''
];
$attributes = [
'return_format' => 'array',
'library' => 'all',
'min_size' => 0,
'max_size' => 0,
'mime_types' => ''
];
$attributes = [
'library' => 'all',
'min' => 0,
'max' => 0,
'min_width' => 0,
'min_height' => 0,
'min_size' => 0,
'max_width' => 0,
'max_height' => 0,
'max_size' => 0,
'mime_types' => '',
'insert' => 'append'
];
$attributes = [
'return_format' => 'array',
];
$attributes = [
'post_type' => array(),
'taxonomy' => array(),
'allow_null' => 0,
'multiple' => 0,
'return_format' => 'object',
'ui' => 1,
];
$attributes = [
'post_type' => array(),
'taxonomy' => array(),
'allow_null' => 0,
'multiple' => 0,
'allow_archives' => 1
];
$attributes = [
'post_type' => array(),
'taxonomy' => array(),
'min' => 0,
'max' => 0,
'filters' => array('search', 'post_type', 'taxonomy'),
'elements' => array(),
'return_format' => 'object'
];
$attributes = [
'taxonomy' => 'category',
'field_type' => 'checkbox',
'multiple' => 0,
'allow_null' => 0,
'return_format' => 'id',
'add_term' => 1,
'load_terms' => 0,
'save_terms' => 0
];
$attributes = [
'role' => '',
'multiple' => 0,
'allow_null' => 0,
];
$attributes = [
'multiple' => 0,
'allow_null' => 0,
'choices' => array(),
'default_value' => '',
'ui' => 0,
'ajax' => 0,
'placeholder' => '',
'return_format' => 'value'
];
$attributes = [
'layout' => 'vertical',
'choices' => array(),
'default_value' => '',
'allow_custom' => 0,
'save_custom' => 0,
'toggle' => 0,
'return_format' => 'value'
];
$attributes = [
'layout' => 'vertical',
'choices' => array(),
'default_value' => '',
'other_choice' => 0,
'save_other_choice' => 0,
'allow_null' => 0,
'return_format' => 'value'
];
$attributes = [
'default_value' => 0,
'message' => '',
'ui' => 0,
'ui_on_text' => '',
'ui_off_text' => '',
];
$attributes = [
'height' => '',
'center_lat' => '',
'center_lng' => '',
'zoom' => ''
];
$attributes = [
'display_format' => 'd/m/Y',
'return_format' => 'd/m/Y',
'first_day' => 1
];
$attributes = [
'display_format' => 'd/m/Y g:i a',
'return_format' => 'd/m/Y g:i a',
'first_day' => 1
];
$attributes = [
'display_format' => 'g:i a',
'return_format' => 'g:i a',
];
$attributes = [
'default_value' => 0,
];
$attributes = [
'default_value' => 0,
];
$attributes = [
'message' => '',
'esc_html' => 0,
'new_lines' => 'wpautop',
];
$attributes = [
'placement' => 'top',
'endpoint' => 0
];
$attributes = [
'sub_fields' => array(),
'layout' => 'block'
];
$attributes = [
'sub_fields' => array(),
'min' => 0,
'max' => 0,
'layout' => 'table',
'button_label' => '',
'collapsed' => ''
];
$attributes = [
'layouts' => array(),
'min' => '',
'max' => '',
'button_label'=> "Add Row",
];
Not supported via a arrow function [StoutLogic/acf-builder#37].
$attributes = [
'clone' => '',
'prefix_label' => 0,
'prefix_name' => 0,
'display' => 'seamless',
'layout' => 'block'
];
Hi Guys, this gist is not up-to-date any more, pls check; https://github.com/tdwesten/acf-fieldattributes-cheatsheet/