", $load_json);
$settings = array(
array(
'name' => 'path',
'label' => 'Path',
'value' => '
' . acf_get_setting('path') . '',
'description' => 'Absolute path to ACF plugin folder including trailing slash.
Defaults to plugin_dir_path'
),
array(
'name' => 'dir',
'label' => 'Directory',
'value' => '
' . acf_get_setting('dir') . '',
'description' => 'URL to ACF plugin folder including trailing slash. Defaults to plugin_dir_url'
),
array(
'name' => 'show_admin',
'label' => 'Show menu',
'value' => '
' . (acf_get_setting('show_admin') ? __('True'): __('False')) . '',
'description' => 'Show/hide ACF menu item. Defaults to true'
),
array(
'name' => 'stripslashes',
'label' => 'Strip slashes',
'value' => '
' . (acf_get_setting('stripslashes') ? __('True'): __('False')) . '',
'description' => 'Runs the function stripslashes on all $_POST data. Some servers / WP instals may require this extra functioanlity. Defaults to false'
),
array(
'name' => 'local',
'label' => 'PHP/Json',
'value' => '
' . (acf_get_setting('local') ? __('True'): __('False')) . '',
'description' => 'Enable/Disable local (PHP/json) fields. Defaults to true'
),
array(
'name' => 'json',
'label' => 'Json',
'value' => '
' . (acf_get_setting('json') ? __('True'): __('False')) . '',
'description' => 'Enable/Disable json fields. Defaults to true'
),
array(
'name' => 'save_json',
'label' => 'Json folder (save)',
'value' => '
' . acf_get_setting('dir') . '',
'description' => 'Absolute path to folder where json files will be created when field groups are saved.
Defaults to ‘acf-json’ folder within current theme'
),
array(
'name' => 'load_json',
'label' => 'Json folder (load)',
'value' => '
' . $load_json_text . '',
'description' => 'Array of absolutes paths to folders where field group json files can be read.
Defaults to an array containing at index 0, the ‘acf-json’ folder within current theme'
),
array(
'name' => 'default_language',
'label' => 'Default language',
'value' => '
' . acf_get_setting('default_language') . '',
'description' => 'Language code of the default language. Defaults to ”.
If WPML is active, ACF will default this to the WPML default language setting'
),
array(
'name' => 'current_language',
'label' => 'Current language',
'value' => '
' . acf_get_setting('current_language') . '',
'description' => 'Language code of the current post’s language. Defaults to ”.
If WPML is active, ACF will default this to the WPML current language'
),
array(
'name' => 'capability',
'label' => 'Capability',
'value' => '
' . acf_get_setting('capability') . '',
'description' => 'Capability used for ACF post types and if the current user can see the ACF menu item.
Defaults to ‘manage_options’.'
),
array(
'name' => 'show_updates',
'label' => 'Show updates',
'value' => '
' . (acf_get_setting('show_updates') ? __('True'): __('False')) . '',
'description' => 'Enable/Disable updates to appear in plugin list and show/hide the ACF updates admin page.
Defaults to true.'
),
array(
'name' => 'export_textdomain',
'label' => 'Export textdomain',
'value' => '
' . (acf_get_setting('export_textdomain') ? __('True'): __('False')) . '',
'description' => 'Array of keys used during the ‘Export to PHP’ feature to wrap strings within the __() function.
Defaults to array(’title’, ’label’, ’instructions’). Depreciated in v5.3.4 – please see l10n_field and l10n_field_group'
),
array(
'name' => 'export_translate',
'label' => 'Export translate',
'value' => '
' . print_r(acf_get_setting('export_translate'), true) . '',
'description' => 'Used during the ‘Export to PHP’ feature to wrap strings within the __() function.
Depreciated in v5.4.4 – please see l10n_textdomain'
),
array(
'name' => 'autoload',
'label' => 'Auto load',
'value' => '
' . (acf_get_setting('autoload') ? __('True'): __('False')) . '',
'description' => 'Sets the text domain used when translating field and field group settings.
Defaults to ”. Strings will not be translated if this setting is empty'
),
array(
'name' => 'l10n',
'label' => 'l10n',
'value' => '
' . (acf_get_setting('l10n') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to translate field and field group settings using the __() function.
Defaults to true. Useful to override translation without modifying the textdomain'
),
array(
'name' => 'l10n_textdomain',
'label' => 'l10n Textdomain',
'value' => '
' . (acf_get_setting('l10n') ? __('True'): __('False')) . '',
'description' => 'Sets the text domain used when translating field and field group settings.
Defaults to ”. Strings will not be translated if this setting is empty'
),
array(
'name' => 'l10n_field',
'label' => 'l10n Field',
'value' => '
' . print_r(acf_get_setting('l10n_field'), true) . '',
'description' => 'An array of settings to translate when loading and exporting a field.
Defaults to array(’label’, ’instructions’). Depreciated in v5.3.6 – please see acf/translate_field filter'
),
array(
'name' => 'l10n_field_group',
'label' => 'l10n Field group',
'value' => '
' . print_r(acf_get_setting('l10n_field_group'), true) . '',
'description' => 'An array of settings to translate when loading and exporting a field group.
Defaults to array(’title’). Depreciated in v5.3.6 – please see acf/translate_field_group filter'
),
array(
'name' => 'google_api_key',
'label' => 'Google API Key',
'value' => '
' . acf_get_setting('google_api_key') . '',
'description' => 'Specify a Google Maps API authentication key to prevent usage limits.
Defaults to ”'
),
array(
'name' => 'google_api_client',
'label' => 'Google API Key',
'value' => '
' . acf_get_setting('google_api_client') . '',
'description' => 'Specify a Google Maps API Client ID to prevent usage limits.
Not needed if using google_api_key. Defaults to ”'
),
array(
'name' => 'enqueue_google_maps',
'label' => 'Enqueue Google Maps',
'value' => '
' . (acf_get_setting('enqueue_google_maps') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to enqueue and load the Google Maps API JS library.
Defaults to true'
),
array(
'name' => 'enqueue_select2',
'label' => 'Enqueue Select2',
'value' => '
' . (acf_get_setting('enqueue_select2') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to enqueue and load the Select2 JS/CSS library.
Defaults to true'
),
array(
'name' => 'select2_version',
'label' => 'Select2 version',
'value' => '
' . acf_get_setting('select2_version') . '',
'description' => 'Defines which version of Select2 library to enqueue. Either 3 or 4.
Defaults to 4 since ACF 5.6.0'
),
array(
'name' => 'enqueue_datepicker',
'label' => 'Enqueue Datepicker',
'value' => '
' . (acf_get_setting('enqueue_datepicker') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to enqueue and load the WP datepicker JS/CSS library.
Defaults to true'
),
array(
'name' => 'enqueue_datetimepicker',
'label' => 'Enqueue Datepiker/time',
'value' => '
' . (acf_get_setting('enqueue_datetimepicker') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to enqueue and load the datetimepicker JS/CSS library.
Defaults to true'
),
array(
'name' => 'row_index_offset',
'label' => 'Row index offset',
'value' => '
' . acf_get_setting('row_index_offset') . '',
'description' => 'Defines the starting index used in all ‘loop’ and ‘row’ functions.
Defaults to 1 (1 is the first row), can be changed to 0 (0 is the first row)'
),
array(
'name' => 'remove_wp_meta_box',
'label' => 'Remove WP meta box',
'value' => '
' . (acf_get_setting('remove_wp_meta_box') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to remove the default WP custom fields metabox. Defaults to true'
),
);
?>