in web/wp-content/plugins/acf-extended/includes/field-groups/field-group-meta.php [42:133]
function render_metabox(){
global $field_group;
// meta
acf_render_field_wrap(array(
'label' => __('Custom meta data'),
'name' => 'acfe_meta',
'key' => 'acfe_meta',
'instructions' => __('Add custom meta data to the field group.'),
'prefix' => 'acf_field_group',
'type' => 'repeater',
'button_label' => __('+ Meta'),
'required' => false,
'layout' => 'table',
'value' => (isset($field_group['acfe_meta'])) ? $field_group['acfe_meta'] : array(),
'wrapper' => array(
'data-enable-switch' => true
),
'sub_fields' => array(
array(
'ID' => false,
'label' => __('Key'),
'name' => 'acfe_meta_key',
'key' => 'acfe_meta_key',
'prefix' => '',
'_name' => '',
'_prepare' => '',
'type' => 'text',
'instructions' => false,
'required' => false,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
),
array(
'ID' => false,
'label' => __('Value'),
'name' => 'acfe_meta_value',
'key' => 'acfe_meta_value',
'prefix' => '',
'_name' => '',
'_prepare' => '',
'type' => 'text',
'instructions' => false,
'required' => false,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
),
)
));
// note
acf_render_field_wrap(array(
'label' => __('Note'),
'name' => 'acfe_note',
'prefix' => 'acf_field_group',
'type' => 'textarea',
'instructions' => __('Add personal note. Only visible to administrators'),
'value' => (isset($field_group['acfe_note'])) ? $field_group['acfe_note'] : '',
'required' => false,
'wrapper' => array(
'data-enable-switch' => true
),
));
// data
acf_render_field_wrap(array(
'label' => __('Field group data'),
'instructions' => __('View raw field group data, for development use'),
'type' => 'acfe_dynamic_render',
'name' => 'acfe_data',
'prefix' => 'acf_field_group',
'value' => $field_group['key'],
));
?>
<script type="text/javascript">
if(typeof acf !== 'undefined'){
acf.postbox.render({
'id': 'acf-field-group-acfe',
'label': 'left'
});
}
</script>
<?php
}