$item){ // ACFE: Field Group Category if($item[2] == 'edit-tags.php?taxonomy=acf-field-group-category'){ $temp_category = $submenu['edit.php?post_type=acf-field-group'][$ikey]; $temp_category_key = $ikey; } // ACFE: Settings elseif($item[2] == 'acfe-settings'){ $temp_settings = $submenu['edit.php?post_type=acf-field-group'][$ikey]; $temp_settings_key = $ikey; } // Tools elseif($item[2] == 'acf-tools'){ $temp_tools = $submenu['edit.php?post_type=acf-field-group'][$ikey]; $temp_tools_key = $ikey; } // Infos elseif($item[2] == 'acf-settings-info'){ $temp_infos = $submenu['edit.php?post_type=acf-field-group'][$ikey]; $temp_infos_key = $ikey; } } // Swapping $submenu['edit.php?post_type=acf-field-group'][$temp_tools_key] = $temp_category; $submenu['edit.php?post_type=acf-field-group'][$temp_infos_key] = $temp_settings; $submenu['edit.php?post_type=acf-field-group'][$temp_category_key] = $temp_tools; $submenu['edit.php?post_type=acf-field-group'][$temp_settings_key] = $temp_infos; } function acfe_admin_settings_html(){ ?>
' . acf_get_setting('path') . '',
'description' => 'Absolute path to ACF plugin folder including trailing slash.' . 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.' . $load_json_text . '',
'description' => 'Array of absolutes paths to folders where field group json files can be read.' . acf_get_setting('default_language') . '',
'description' => 'Language code of the default language. Defaults to ”.' . acf_get_setting('current_language') . '',
'description' => 'Language code of the current post’s language. Defaults to ”.' . acf_get_setting('capability') . '',
'description' => 'Capability used for ACF post types and if the current user can see the ACF menu item.' . (acf_get_setting('show_updates') ? __('True'): __('False')) . '',
'description' => 'Enable/Disable updates to appear in plugin list and show/hide the ACF updates admin page.' . (acf_get_setting('export_textdomain') ? __('True'): __('False')) . '',
'description' => 'Array of keys used during the ‘Export to PHP’ feature to wrap strings within the __() function.' . print_r(acf_get_setting('export_translate'), true) . '',
'description' => 'Used during the ‘Export to PHP’ feature to wrap strings within the __() function.' . (acf_get_setting('autoload') ? __('True'): __('False')) . '',
'description' => 'Sets the text domain used when translating field and field group settings.' . (acf_get_setting('l10n') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to translate field and field group settings using the __() function.' . (acf_get_setting('l10n') ? __('True'): __('False')) . '',
'description' => 'Sets the text domain used when translating field and field group settings.' . print_r(acf_get_setting('l10n_field'), true) . '',
'description' => 'An array of settings to translate when loading and exporting a field.' . print_r(acf_get_setting('l10n_field_group'), true) . '',
'description' => 'An array of settings to translate when loading and exporting a field group.' . acf_get_setting('google_api_key') . '',
'description' => 'Specify a Google Maps API authentication key to prevent usage limits.' . acf_get_setting('google_api_client') . '',
'description' => 'Specify a Google Maps API Client ID to prevent usage limits.' . (acf_get_setting('enqueue_google_maps') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to enqueue and load the Google Maps API JS library.' . (acf_get_setting('enqueue_select2') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to enqueue and load the Select2 JS/CSS library.' . acf_get_setting('select2_version') . '',
'description' => 'Defines which version of Select2 library to enqueue. Either 3 or 4.' . (acf_get_setting('enqueue_datepicker') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to enqueue and load the WP datepicker JS/CSS library.' . (acf_get_setting('enqueue_datetimepicker') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to enqueue and load the datetimepicker JS/CSS library.' . acf_get_setting('row_index_offset') . '',
'description' => 'Defines the starting index used in all ‘loop’ and ‘row’ functions.' . (acf_get_setting('remove_wp_meta_box') ? __('True'): __('False')) . '',
'description' => 'Allows ACF to remove the default WP custom fields metabox. Defaults to true'
),
);
?>