Raw data

Raw data is handy feature that allows developers to take a look a field configuration. Clicking the “Data” button will open a modal with the Field settings splitted in two parts:

  • Field array settings using acf_get_field()
  • Field post object using acf_get_field_post()

/*
 * Array
 * (
 * [ID] => 183
 * [key] => field_5f3b208e9d263
 * [label] => Field
 * [name] => my_field
 * [prefix] => acf
 * [type] => select
 * [value] => 
 * [menu_order] => 1
 * [instructions] => 
 * [required] => 1
 * [id] => 
 * [class] => 
 * [conditional_logic] => 0
 * [parent] => 179
 * [wrapper] => Array
 *      (
 *          [width] => 
 *          [class] => 
 *          [id] => 
 *      )
 * [acfe_permissions] => 
 * [choices] => Array
 *      (
 *          [choice_1] => Choice 1
 *          [choice_2] => Choice 2
 *          [choice_3] => Choice 3
 *      )
 * [default_value] => Array()
 * [allow_null] => 0
 * [multiple] => 1
 * [ui] => 1
 * [ajax] => 0
 * [return_format] => value
 * [allow_custom] => 0
 * [placeholder] => 
 * [search_placeholder] => 
 * [_name] => my_field
 * [_valid] => 1
 * )
 */
/*
 * Array
 * (
 * [ID] => 183
 * [post_author] => 1
 * [post_date] => 2020-08-18 02:30:43
 * [post_date_gmt] => 2020-08-18 00:30:43
 * [post_content] => a:16:{s:4:"type";s:6:"select";s:12:"instructions";s:0:"";s:8:"required";i:1;s:17:"conditional_logic";i:0;s:7:"wrapper";a:3:{s:5:"width";s:0:"";s:5:"class";s:0:"";s:2:"id";s:0:"";}s:16:"acfe_permissions";s:0:"";s:7:"choices";a:3:{s:8:"choice_1";s:8:"Choice 1";s:8:"choice_2";s:8:"Choice 2";s:8:"choice_3";s:8:"Choice 3";}s:13:"default_value";a:0:{}s:10:"allow_null";i:0;s:8:"multiple";i:1;s:2:"ui";i:1;s:4:"ajax";i:0;s:13:"return_format";s:5:"value";s:12:"allow_custom";i:0;s:11:"placeholder";s:0:"";s:18:"search_placeholder";s:0:"";}
 * [post_title] => Field
 * [post_excerpt] => my_field
 * [post_status] => publish
 * [comment_status] => closed
 * [ping_status] => closed
 * [post_password] =>
 * [post_name] => field_5f3b208e9d263
 * [to_ping] =>
 * [pinged] =>
 * [post_modified] => 2020-08-18 02:30:43
 * [post_modified_gmt] => 2020-08-18 00:30:43
 * [post_content_filtered] =>
 * [post_parent] => 179
 * [guid] => /?post_type=acf-field&p=183
 * [menu_order] => 1
 * [post_type] => acf-field
 * [post_mime_type] =>
 * [comment_count] => 0
 * [filter] => raw
 * [ancestors] => Array
 *      (
 *          [0] => 179
 *      )
 * [page_template] =>
 * [post_category] => Array()
 * [tags_input] => Array()
 * )
 */