in web/wp-content/plugins/acf-extended/includes/modules/form/module-form-action-user.php [1165:2371]
function register_layout($layout){
return array(
/**
* documentation
*/
array(
'key' => 'field_doc',
'label' => '',
'name' => '',
'type' => 'acfe_dynamic_render',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'render' => function(){
echo '<a href="https://www.acf-extended.com/features/modules/dynamic-forms/user-action" target="_blank">' . __('Documentation', 'acfe') . '</a>';
}
),
/**
* action
*/
array(
'key' => 'field_tab_action',
'label' => __('Action', 'acfe'),
'name' => '',
'type' => 'tab',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-no-preference' => true,
),
'placement' => 'top',
'endpoint' => 0,
),
array(
'key' => 'field_type',
'label' => __('Action', 'acfe'),
'name' => 'type',
'type' => 'radio',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
'insert_user' => __('Create user', 'acfe'),
'update_user' => __('Update user', 'acfe'),
'log_user' => __('Log user', 'acfe'),
),
'default_value' => 'insert_user',
),
array(
'key' => 'field_validation',
'label' => __('Validation', 'acfe'),
'name' => 'validation',
'type' => 'true_false',
'instructions' => __('(Optional) Automatically validate fields', 'acfe'),
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-instruction-placement' => 'field'
),
'message' => __('Built-in validation', 'acfe'),
'default_value' => 0,
'ui' => false,
'ui_on_text' => '',
'ui_off_text' => '',
'conditional_logic' => array(),
),
array(
'key' => 'field_name',
'label' => __('Action name', 'acfe'),
'name' => 'name',
'type' => 'acfe_slug',
'instructions' => __('(Optional) Target this action using hooks.', 'acfe'),
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-instruction-placement' => 'field'
),
'default_value' => '',
'placeholder' => __('User', 'acfe'),
'prepend' => '',
'append' => '',
'maxlength' => '',
),
/**
* log
*/
array(
'key' => 'field_tab_login',
'label' => __('Login', 'acfe'),
'name' => '',
'type' => 'tab',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'type',
'operator' => '==',
'value' => 'log_user',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-no-preference' => true,
),
'placement' => 'top',
'endpoint' => 0,
),
array(
'key' => 'field_login_type',
'label' => __('Login type', 'acfe'),
'name' => 'login_type',
'type' => 'radio',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
'email' => __('E-mail', 'acfe'),
'username' => __('Username', 'acfe'),
'email_username' => __('E-mail or username', 'acfe'),
),
'allow_null' => 0,
'other_choice' => 0,
'default_value' => '',
'layout' => 'vertical',
'return_format' => 'value',
'save_other_choice' => 0,
'conditional_logic' => array(),
),
array(
'key' => 'field_login_user',
'label' => __('Login', 'acfe'),
'name' => 'login_user',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_login_pass',
'label' => __('Password', 'acfe'),
'name' => 'login_pass',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_login_remember',
'label' => __('Remember me', 'acfe'),
'name' => 'login_remember',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
/**
* save
*/
array(
'key' => 'field_tab_save',
'label' => __('Save', 'acfe'),
'name' => '',
'type' => 'tab',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'type',
'operator' => '!=',
'value' => 'log_user',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-no-preference' => true,
),
'placement' => 'top',
'endpoint' => 0,
),
array(
'key' => 'field_save_target_group',
'label' => __('Target', 'acfe'),
'name' => 'save_target_group',
'type' => 'group',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'type',
'operator' => '==',
'value' => 'update_user',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'layout' => 'block',
'acfe_seamless_style' => true,
'acfe_group_modal' => 0,
'sub_fields' => array(
array(
'key' => 'field_save_target',
'label' => '',
'name' => 'target',
'type' => 'select',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
'{user}' => __('Current User', 'acfe'),
'{post:post_author}' => __('Current Post Author', 'acfe'),
'custom' => __('User Selector', 'acfe'),
),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax'
),
array(
'key' => 'field_save_target_custom',
'label' => '',
'name' => 'target_custom',
'type' => 'user',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_save_target',
'operator' => '==',
'value' => 'custom',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'id',
'default_value' => '',
),
),
),
array(
'key' => 'field_save_user_email',
'label' => __('Email', 'acfe'),
'name' => 'save_user_email',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_user_login',
'label' => __('Username', 'acfe'),
'name' => 'save_user_login',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_user_pass',
'label' => __('Password', 'acfe'),
'name' => 'save_user_pass',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
'{generate_password}' => __('Generate Password', 'acfe')
),
'default_value' => array(
),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_first_name',
'label' => __('First name', 'acfe'),
'name' => 'save_first_name',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_last_name',
'label' => __('Last name', 'acfe'),
'name' => 'save_last_name',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_nickname',
'label' => __('Nickname', 'acfe'),
'name' => 'save_nickname',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_display_name',
'label' => __('Display name', 'acfe'),
'name' => 'save_display_name',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_user_url',
'label' => __('Website', 'acfe'),
'name' => 'save_user_url',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_description_group',
'label' => __('Description', 'acfe'),
'name' => 'save_description_group',
'type' => 'group',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'layout' => 'block',
'acfe_seamless_style' => true,
'acfe_group_modal' => 0,
'sub_fields' => array(
array(
'key' => 'field_save_description',
'label' => '',
'name' => 'description',
'type' => 'select',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
'custom' => __('Content Editor', 'acfe'),
),
'default_value' => array(
),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_description_custom',
'label' => '',
'name' => 'description_custom',
'type' => 'wysiwyg',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_save_description',
'operator' => '==',
'value' => 'custom',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'tabs' => 'all',
'toolbar' => 'full',
'media_upload' => 1,
'delay' => 0,
),
),
),
array(
'key' => 'field_save_role',
'label' => __('Role', 'acfe'),
'name' => 'save_role',
'type' => 'acfe_user_roles',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'user_role' => '',
'field_type' => 'select',
'default_value' => '',
'allow_null' => 1,
'placeholder' => __('Default', 'acfe'),
'multiple' => 0,
'ui' => 1,
'choices' => array(),
'ajax' => 1,
'layout' => '',
'toggle' => 0,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'conditional_logic' => array(),
'ajax_action' => 'acfe/form/map_field_ajax',
),
array(
'key' => 'field_save_log_user',
'label' => __('Log user', 'acfe'),
'name' => 'save_log_user',
'type' => 'true_false',
'instructions' => __('Log user once created', 'acfe'),
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'message' => '',
'default_value' => 0,
'ui' => 1,
'ui_on_text' => '',
'ui_off_text' => '',
'conditional_logic' => array(
array(
array(
'field' => 'type',
'operator' => '==',
'value' => 'insert_user',
),
),
),
),
array(
'key' => 'field_save_acf_fields',
'label' => __('Save ACF fields', 'acfe'),
'name' => 'save_acf_fields',
'type' => 'checkbox',
'instructions' => __('Which ACF fields should be saved as metadata', 'acfe'),
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'allow_custom' => 0,
'default_value' => array(),
'layout' => 'vertical',
'toggle' => 0,
'return_format' => 'value',
'save_custom' => 0,
'conditional_logic' => array(),
),
/**
* load
*/
array(
'key' => 'field_tab_load',
'label' => __('Load', 'acfe'),
'name' => '',
'type' => 'tab',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-no-preference' => true,
),
'placement' => 'top',
'endpoint' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'type',
'operator' => '!=',
'value' => 'log_user',
),
),
),
),
array(
'key' => 'field_load_active',
'label' => __('Load Values', 'acfe'),
'name' => 'load_active',
'type' => 'true_false',
'instructions' => __('Fill inputs with values', 'acfe'),
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'acfe_permissions' => '',
'message' => '',
'default_value' => 0,
'ui' => 1,
'ui_on_text' => '',
'ui_off_text' => '',
'conditional_logic' => array(),
),
array(
'key' => 'field_load_source_group',
'label' => __('Source', 'acfe'),
'name' => 'load_source_group',
'type' => 'group',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'layout' => 'block',
'acfe_seamless_style' => true,
'acfe_group_modal' => 0,
'sub_fields' => array(
array(
'key' => 'field_load_source',
'label' => '',
'name' => 'source',
'type' => 'select',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
'{user}' => __('Current User', 'acfe'),
'{post:post_author}' => __('Current Post Author', 'acfe'),
'custom' => __('User Selector', 'acfe'),
),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('Default', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a custom value/template tag.', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax'
),
array(
'key' => 'field_load_source_custom',
'label' => '',
'name' => 'source_custom',
'type' => 'user',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_load_source',
'operator' => '==',
'value' => 'custom',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'id',
'default_value' => '',
)
),
),
array(
'key' => 'field_load_user_email',
'label' => __('Email', 'acfe'),
'name' => 'load_user_email',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_user_email'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_user_login',
'label' => __('Username', 'acfe'),
'name' => 'load_user_login',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_user_login'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_user_pass',
'label' => __('Password', 'acfe'),
'name' => 'load_user_pass',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_user_pass'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_first_name',
'label' => __('First name', 'acfe'),
'name' => 'load_first_name',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_first_name'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_last_name',
'label' => __('Last name', 'acfe'),
'name' => 'load_last_name',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_last_name'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_nickname',
'label' => __('Nickname', 'acfe'),
'name' => 'load_nickname',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_nickname'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_display_name',
'label' => __('Display name', 'acfe'),
'name' => 'load_display_name',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_display_name'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_user_url',
'label' => __('Website', 'acfe'),
'name' => 'load_user_url',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_user_url'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_description',
'label' => __('Description', 'acfe'),
'name' => 'load_description',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_description'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_role',
'label' => __('Role', 'acfe'),
'name' => 'load_role',
'type' => 'select',
'instructions' => '',
'required' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
'data-related-field' => 'field_save_role'
),
'choices' => array(),
'default_value' => array(),
'allow_null' => 1,
'multiple' => 0,
'ui' => 1,
'return_format' => 'value',
'placeholder' => __('None', 'acfe'),
'ajax' => 1,
'search_placeholder' => __('Select a field or enter a field key', 'acfe'),
'allow_custom' => 1,
'ajax_action' => 'acfe/form/map_field_ajax',
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
),
array(
'key' => 'field_load_acf_fields',
'label' => __('Load ACF fields', 'acfe'),
'name' => 'load_acf_fields',
'type' => 'checkbox',
'instructions' => __('Select which ACF fields should have their values loaded', 'acfe'),
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_load_active',
'operator' => '==',
'value' => '1',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(),
'allow_custom' => 0,
'default_value' => array(),
'layout' => 'vertical',
'toggle' => 0,
'return_format' => 'value',
'save_custom' => 0,
),
);
}