PluginProbe
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms / 3.38.0
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms v3.38.0
3.54.0 3.53.0 3.52.0 3.51.0 3.50.0 3.45.0 3.38.0 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.40.0 3.40.1 3.41.0 3.42.0 3.43.0 3.44.0 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 All 178 releases
simple-tags / inc / helper.options.admin.php

helper.options.admin.php in Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms 3.38.0, at inc/helper.options.admin.php

482 lines 23.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 require_once STAGS_DIR . '/modules/taxopress-ai/classes/TaxoPressAiUtilities.php';
3
4 $taxopress_ai_tabs = [];
5
6 $taxopress_posts_terms_label = get_option(
7 'taxopress_ai_post_terms_tab_label',
8 SimpleTags_Plugin::get_option_value('taxopress_ai_post_terms_tab_label')
9 );
10 $taxopress_existing_terms_label = get_option(
11 'taxopress_ai_existing_terms_tab_label',
12 SimpleTags_Plugin::get_option_value('taxopress_ai_existing_terms_tab_label')
13 );
14 $taxopress_suggest_local_terms_label = get_option(
15 'taxopress_ai_suggest_local_terms_tab_label',
16 SimpleTags_Plugin::get_option_value('taxopress_ai_suggest_local_terms_tab_label')
17 );
18 $taxopress_create_terms_label = get_option(
19 'taxopress_ai_create_terms_tab_label',
20 SimpleTags_Plugin::get_option_value('taxopress_ai_create_terms_tab_label')
21 );
22
23 if (empty($taxopress_existing_terms_label)) {
24 $taxopress_existing_terms_label = esc_html__('Show All Existing Terms', 'simple-tags');
25 }
26 if (empty($taxopress_posts_terms_label)) {
27 $taxopress_posts_terms_label = esc_html__('Manage Post Terms', 'simple-tags');
28 }
29 if (empty($taxopress_suggest_local_terms_label)) {
30 $taxopress_suggest_local_terms_label = esc_html__('Auto Terms', 'simple-tags');
31 }
32 if (empty($taxopress_create_terms_label)) {
33 $taxopress_create_terms_label = esc_html__('Create Terms', 'simple-tags');
34 }
35
36 $taxopress_ai_tabs['existing_terms'] = $taxopress_existing_terms_label;
37 $taxopress_ai_tabs['post_terms'] = $taxopress_posts_terms_label;
38 $taxopress_ai_tabs['suggest_local_terms'] = $taxopress_suggest_local_terms_label;
39 $taxopress_ai_tabs['create_terms'] = $taxopress_create_terms_label;
40
41 $taxopress_ai_fields = [];
42 $pt_index = 0;
43 foreach (TaxoPressAiUtilities::get_post_types_options() as $post_type => $post_type_object) {
44 $hidden_field = ($pt_index === 0) ? '' : 'st-hide-content';
45
46 $default_taxonomy_options = [];
47 foreach (get_object_taxonomies($post_type, 'objects') as $tax_key => $tax_object) {
48 if (!in_array($tax_key, ['post_format']) && (!empty($tax_object->show_ui) || !empty(SimpleTags_Plugin::get_option_value('taxopress_ai_' . $post_type . '_support_private_taxonomy')))) {
49 $default_taxonomy_options[$tax_key] = $tax_object->labels->name. ' ('.$tax_object->name.')';
50 }
51 }
52
53 if (empty($default_taxonomy_options)) {
54 // This feature only matter if a post has taxonomy
55 $taxopress_ai_fields[] = array(
56 'enable_taxopress_ai_' . $post_type . '_text',
57 '',
58 'helper',
59 '1',
60 esc_html__('This post type has no taxonomies.', 'simple-tags'),
61 'taxopress-ai-tab-content taxopress-ai-'. $post_type .'-content '. $hidden_field .''
62 );
63 } else {
64 $taxopress_ai_fields[] = array(
65 'enable_taxopress_ai_' . $post_type . '_metabox',
66 sprintf(esc_html__('%1s Metabox', 'simple-tags'), esc_html($post_type_object->labels->name)),
67 'checkbox',
68 '1',
69 sprintf(esc_html__('Enable the metabox on the %1s screen.', 'simple-tags'), esc_html($post_type_object->labels->name)),
70 'taxopress-ai-tab-content taxopress-ai-'. $post_type .'-content '. $hidden_field .''
71 );
72
73 //metabox features subhead
74 $taxopress_ai_fields[] = array(
75 'metabox_feature_header',
76 '<h3 class="taxopress-settings-section-header">' . esc_html__('Metabox Features:', 'simple-tags') . '</h3>',
77 'header',
78 '',
79 '',
80 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_metabox_field st-subhide-content'
81 );
82 // add feature tab
83 $tab_field_options = [];
84 foreach ($taxopress_ai_tabs as $taxopress_ai_tab => $taxopress_ai_tab_label) {
85 $tab_field_options['enable_taxopress_ai_' . $post_type . '_' . $taxopress_ai_tab . '_tab'] = [
86 'label' => $taxopress_ai_tab_label
87 ];
88 if ($taxopress_ai_tab == 'suggest_local_terms') {
89 $tab_field_options['enable_taxopress_ai_' . $post_type . '_' . $taxopress_ai_tab . '_tab']['description'] = sprintf(esc_html__('This feature requires a valid API key. %1sView documentation%2s.', 'simple-tags'), '<a href="https://taxopress.com/docs/sources-for-auto-terms/" target="_blank">', '</a>');
90 } elseif ($taxopress_ai_tab == 'create_terms') {
91 $tab_field_options['enable_taxopress_ai_' . $post_type . '_' . $taxopress_ai_tab . '_tab']['description'] = sprintf(esc_html__('This feature requires users have the capability to add terms. %1sView documentation%2s.', 'simple-tags'), '<a href="http://taxopress.com/docs/add-terms-capabilities/" target="_blank">', '</a>');
92 }
93 }
94 $taxopress_ai_fields[] = array(
95 'enable_taxopress_ai_' . $post_type . '_tab',
96 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_metabox_field st-subhide-content">' . esc_html__('Metabox Features', 'simple-tags') . '</div>',
97 'sub_multiple_checkbox',
98 $tab_field_options,
99 '',
100 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_metabox_field st-subhide-content'
101 );
102
103 //metabox Taxonomy subhead
104 $taxopress_ai_fields[] = array(
105 'metabox_taxonomy_header',
106 '<h3 class="taxopress-settings-section-header">' . esc_html__('Metabox Taxonomy:', 'simple-tags') . '</h3>',
107 'header',
108 '',
109 '',
110 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_post_terms_tab_field st-subhide-content'
111 );
112
113 $taxopress_ai_fields[] = array(
114 'taxopress_ai_' . $post_type . '_support_private_taxonomy',
115 sprintf(esc_html__('Show %1s Private Taxonomies in Metabox', 'simple-tags'), esc_html($post_type_object->labels->name)),
116 'checkbox',
117 '1',
118 sprintf(esc_html__('Add support for %1s private taxonomies.', 'simple-tags'), esc_html($post_type_object->labels->name)),
119 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_post_terms_tab_field st-subhide-content'
120 );
121
122 // add taxonomy
123 $taxopress_ai_fields[] = array(
124 'taxopress_ai_' . $post_type . '_metabox_default_taxonomy',
125 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_post_terms_tab_field st-subhide-content">' . esc_html__('Metabox Default Taxonomy', 'simple-tags') . '</div>',
126 'select',
127 $default_taxonomy_options,
128 '',
129 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_post_terms_tab_field st-subhide-content'
130 );
131
132 //metabox terms display subhead
133 $taxopress_ai_fields[] = array(
134 'metabox_terms_display_header',
135 '<h3 class="taxopress-settings-section-header">' . esc_html__('Metabox Terms Display:', 'simple-tags') . '</h3>',
136 'header',
137 '',
138 '',
139 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content'
140 );
141
142 $taxopress_ai_fields[] = array(
143 'taxopress_ai_' . $post_type . '_metabox_filters',
144 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content">' . sprintf(esc_html__('%1s Metabox Filters', 'simple-tags'), esc_html($post_type_object->labels->name)) . '</div>',
145 'checkbox',
146 '1',
147 sprintf(esc_html__('Enable filters in the %1s existing terms tab.', 'simple-tags'), esc_html($post_type_object->labels->name)),
148 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content'
149 );
150
151 // add _metabox_orderby
152 $taxopress_ai_fields[] = array(
153 'taxopress_ai_' . $post_type . '_metabox_orderby',
154 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content">' . esc_html__('Metabox Method for choosing terms', 'simple-tags') . '</div>',
155 'select',
156 TaxoPressAiUtilities::get_existing_terms_orderby(),
157 '',
158 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content'
159 );
160
161 // add _metabox_order
162 $taxopress_ai_fields[] = array(
163 'taxopress_ai_' . $post_type . '_metabox_order',
164 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content">' . esc_html__('Metabox Ordering for choosing terms', 'simple-tags') . '</div>',
165 'select',
166 TaxoPressAiUtilities::get_existing_terms_order(),
167 '',
168 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content'
169 );
170
171 // add _metabox_maximum_terms
172 $taxopress_ai_fields[] = array(
173 'taxopress_ai_' . $post_type . '_metabox_maximum_terms',
174 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content">' . esc_html__('Metabox Maximum terms', 'simple-tags') . '</div>',
175 'number',
176 '',
177 '',
178 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content',
179 0
180 );
181
182 // add _metabox_show_post_count
183 $taxopress_ai_fields[] = array(
184 'taxopress_ai_' . $post_type . '_metabox_show_post_count',
185 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content">' . esc_html__('Metabox Show Term Post Count', 'simple-tags') . '</div>',
186 'checkbox',
187 '1',
188 '',
189 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_existing_terms_tab_field st-subhide-content'
190 );
191
192 //metabox term creation subhead
193 $taxopress_ai_fields[] = array(
194 'metabox_term_creation_header',
195 '<h3 class="taxopress-settings-section-header">' . esc_html__('Metabox Term Creation:', 'simple-tags') . '</h3>',
196 'header',
197 '',
198 '',
199 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_create_terms_tab_field st-subhide-content'
200 );
201
202 //add minimum term length
203 $taxopress_ai_fields[] = array(
204 'taxopress_ai_' . $post_type . '_minimum_term_length',
205 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_create_terms_tab_field st-subhide-content">' . esc_html__('Minimum Term Length', 'simple-tags') . '</div>',
206 'number',
207 '',
208 '<p>' . esc_html__('Specify the minimum length for new terms when creating terms.', 'simple-tags') . '</p>',
209 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_create_terms_tab_field st-subhide-content',
210 1
211 );
212
213 //add maximum term length
214 $taxopress_ai_fields[] = array(
215 'taxopress_ai_' . $post_type . '_maximum_term_length',
216 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_create_terms_tab_field st-subhide-content">' . esc_html__('Maximum Term Length', 'simple-tags') . '</div>',
217 'number',
218 '',
219 '<p>' . esc_html__('Specify the maximum length for new terms when creating terms.', 'simple-tags') . '</p>',
220 'taxopress-ai-tab-content-sub taxopress-ai-'. $post_type .'-content-sub enable_taxopress_ai_' . $post_type . '_create_terms_tab_field st-subhide-content',
221 1
222 );
223
224 $taxopress_ai_fields[] = array(
225 'taxopress_ai_' . $post_type . '_exclusions',
226 '<div class="taxopress-ai-tab-content-sub taxopress-settings-subtab-title taxopress-ai-' . $post_type . '-content-sub enable_taxopress_ai_' . $post_type . '_create_terms_tab_field st-subhide-content">' . esc_html__('Exclusions', 'simple-tags') . '</div>',
227 'textarea',
228 '',
229 '',
230 'taxopress-ai-tab-content-sub taxopress-ai-' . $post_type . '-content-sub enable_taxopress_ai_' . $post_type . '_create_terms_tab_field st-subhide-content',
231 '',
232 array(
233 'rows' => 6,
234 'placeholder' => esc_attr__('Enter characters that will be blocked when users add new terms inside the "Create Terms" box. For example: !@#$%&*()', 'simple-tags'),
235 'width' => '80%'
236 )
237 );
238 // allow to taxopress ai field for each post type
239 $taxopress_ai_fields = apply_filters('taxopress_settings_post_type_ai_fields', $taxopress_ai_fields, $post_type);
240 }
241 $pt_index++;
242 }
243
244 $all_taxonomies = get_taxonomies([], 'objects');
245 $all_taxonomy_options = [];
246 foreach ($all_taxonomies as $tax) {
247 if (in_array($tax->name, ['author', 'post_format', 'nav_menu', 'link_category', 'wp_theme', 'wp_template_part_area', 'wp_pattern_category'])) {
248 continue;
249 }
250 $all_taxonomy_options[$tax->name] = $tax->label;
251 }
252
253 $metabox_taxonomy_options = [];
254 foreach ($all_taxonomies as $tax) {
255 if (!empty($tax->public) && !empty($tax->show_ui)) {
256 $metabox_taxonomy_options[$tax->name] = $tax->label;
257 }
258 }
259
260
261 //metabox
262 $metabox_fields = [];
263 $pt_index = 0;
264 foreach (taxopress_get_all_wp_roles() as $role_name => $role_info) {
265 $hidden_field = ($pt_index === 0) ? '' : 'st-hide-content';
266 // add option to enable/disable access
267 $metabox_fields[] = array(
268 'enable_' . $role_name . '_metabox',
269 esc_html__('Metabox Access', 'simple-tags'),
270 'checkbox',
271 '1',
272 sprintf(esc_html__('Allow users in the %1s role to use the TaxoPress metabox.', 'simple-tags'), esc_html(translate_user_role($role_info['name']))),
273 'metabox-tab-content metabox-'. $role_name .'-content '. $hidden_field .''
274 );
275 $metabox_fields[] = array(
276 'enable_edit_' . $role_name . '_metabox',
277 '',
278 'checkbox',
279 '1',
280 sprintf(esc_html__('Allow users in the %1s role to edit the TaxoPress metabox label.', 'simple-tags'), esc_html(translate_user_role($role_info['name']))),
281 'metabox-tab-content metabox-'. $role_name .'-content '. $hidden_field .''
282 );
283 // add option to manage terms per user role
284 $metabox_fields[] = array(
285 'enable_restrict' . $role_name . '_metabox',
286 esc_html__('Create New Terms', 'simple-tags'),
287 'checkbox',
288 '1',
289 sprintf(esc_html__('Block users in the %1$s role from creating new terms.', 'simple-tags'), esc_html(translate_user_role($role_info['name']))),
290 'metabox-tab-content metabox-'. $role_name .'-content '. $hidden_field .''
291 );
292 // add metabox allowed taxonomies
293 $metabox_fields[] = array(
294 'enable_metabox_' . $role_name . '',
295 '<div class="metabox-tab-content taxopress-settings-subtab-title metabox-'. $role_name .'-content enable_' . $role_name . '_metabox_field '. $hidden_field .'">' . esc_html__('Taxonomies in Metabox', 'simple-tags') . '</div>',
296 'multiselect',
297 $metabox_taxonomy_options,
298 '<p class="metabox-tab-content taxopress-settings-description metabox-'. $role_name .'-content enable_' . $role_name . '_metabox_field description '. $hidden_field .'">' . sprintf(esc_html__('Select the taxonomies that users in %1s role can manage in the TaxoPress metabox.', 'simple-tags'), esc_html(translate_user_role($role_info['name']))) . '</p>',
299 'metabox-tab-content metabox-'. $role_name .'-content enable_' . $role_name . '_metabox_field '. $hidden_field .''
300 );
301 // add core removed taxonomies
302 $metabox_fields[] = array(
303 'remove_taxonomy_metabox_' . $role_name . '',
304 '<div class="metabox-tab-content taxopress-settings-subtab-title metabox-'. $role_name .'-content '. $hidden_field .'">' . esc_html__('Remove Default Metaboxes', 'simple-tags') . '</div>',
305 'multiselect',
306 $all_taxonomy_options,
307 '<p class="metabox-tab-content taxopress-settings-description metabox-'. $role_name .'-content description '. $hidden_field .'">' . sprintf(esc_html__('Remove default taxonomy metaboxes for users in the %1s role.', 'simple-tags'), esc_html(translate_user_role($role_info['name']))) . '</p>',
308 'metabox-tab-content metabox-'. $role_name .'-content '. $hidden_field .''
309 );
310
311 $pt_index++;
312 }
313
314 return apply_filters('taxopress_admin_options', array(
315 // post tab
316 'posts' => array(
317 array(
318 'post_terms_filter_format',
319 __('Terms Filter display:', 'simple-tags'),
320 'radio',
321 array(
322 'term_name' => __('Term Name', 'simple-tags'),
323 'term_name_taxonomy_name' => __('Term Name + Taxonomy Name', 'simple-tags'),
324 'term_name_taxonomy_slug' => __('Term Name + Taxonomy Slug', 'simple-tags'),
325 ),
326 __('This controls the details that appear in the "Terms Filter" display and can help if you have terms with similar names.', 'simple-tags'),
327 ''
328 ),
329 array(
330 'post_terms_taxonomy_type',
331 __('Terms Filter taxonomy:', 'simple-tags'),
332 'radio',
333 array(
334 'public' => __('Public Taxonomies', 'simple-tags'),
335 'private' => __('Private Taxonomies', 'simple-tags'),
336 'term_and_private' => __('Public Taxonomies and Private Taxonomies', 'simple-tags'),
337 ),
338 __('This controls the taxonomy terms that appear on the "Posts" screen.', 'simple-tags'),
339 ''
340 ),
341 ),
342
343
344 // linked terms tab
345 'linked_terms' => array(
346 array(
347 'linked_terms_description',
348 '',
349 'helper',
350 '',
351 __('This feature allows you to connect terms. When the primary or secondary term is added to a post, the other term can be added also.', 'simple-tags'),
352 ''
353 ),
354 array(
355 'linked_terms_type',
356 __('Linked Terms Type:', 'simple-tags'),
357 'radio',
358 array(
359 'main' => __('2-way relationship. When the main term or secondary term are added to the post, other term will be added also.', 'simple-tags'),
360 'primary' => __('Add the primary term, get the secondary term', 'simple-tags'),
361 'secondary' => __('Add the secondary term, get the primary term.', 'simple-tags'),
362 ),
363 '',
364 ''
365 ),
366 array(
367 'linked_terms_taxonomies',
368 __('Enable Taxonomies:', 'simple-tags'),
369 'multiselect',
370 $all_taxonomy_options,
371 __('This controls which taxonomies are available for the Linked Terms feature.', 'simple-tags'),
372 ''
373 )
374 ),
375
376 // term synonyms tab
377 'synonyms' => array(
378 array(
379 'synonyms_description',
380 '',
381 'helper',
382 '',
383 __('This feature allows you to have multiple words associated with a single term. If TaxoPress scans your content and finds a synonym, it will act as if it has found the main term.', 'simple-tags'),
384 ''
385 ),
386 array(
387 'synonyms_taxonomies',
388 __('Enable Taxonomies:', 'simple-tags'),
389 'multiselect',
390 $all_taxonomy_options,
391 __('This controls which taxonomies are available for the Term Synonyms feature.', 'simple-tags'),
392 ''
393 )
394 ),
395
396 // hidden terms tab
397 'hidden_terms' => array(
398 array(
399 'enable_hidden_terms',
400 __('Enable Hidden Terms:', 'simple-tags'),
401 'checkbox',
402 '1',
403 __('This feature will hide terms that are infrequently used. These terms will be visible inside the WordPress admin area, but not on the front of this site.', 'simple-tags'),
404 ''
405 ),
406 array(
407 'hide-rarely',
408 __('Minimum Usage for Hidden Terms:', 'simple-tags'),
409 'number',
410 '1',
411 __('Set the minimum number of posts a term must be attached to. If you enter 5, any term used in fewer than 5 posts will be hidden across the site, and its archive page will redirect to the homepage.', 'simple-tags'),
412 '',
413 1
414 )
415 ),
416
417 'core_linked_terms' => array(
418 array(
419 'linked_terms_pro_notice',
420 '',
421 'core_terms_promo',
422 '',
423 apply_filters('taxopress_settings_linked_terms_pro_notice', ''),
424 ''
425 )
426 ),
427
428 'core_synonyms_terms' => array(
429 array(
430 'synonyms_terms_pro_notice',
431 '',
432 'core_terms_promo',
433 '',
434 apply_filters('taxopress_settings_synonyms_terms_pro_notice', ''),
435 ''
436 )
437 ),
438
439 // Manage terms tab
440 'manage_terms' => array(
441 array(
442 'enable_add_terms_slug',
443 __('Add Terms:', 'simple-tags'),
444 'checkbox',
445 '1',
446 __('Enabling this will allow users to see the slug while adding terms', 'simple-tags'),
447 ''
448 ),
449 array(
450 'enable_remove_terms_slug',
451 __('Remove Terms:', 'simple-tags'),
452 'checkbox',
453 '1',
454 __('Enabling this will allow users to see the slug while removing terms', 'simple-tags'),
455 ''
456 ),
457 array(
458 'enable_rename_terms_slug',
459 __('Rename Terms:', 'simple-tags'),
460 'checkbox',
461 '1',
462 __('Enabling this will allow users to see the slug while Renaming terms', 'simple-tags'),
463 ''
464 ),
465 array(
466 'enable_merge_terms_slug',
467 __('Merge Terms:', 'simple-tags'),
468 'checkbox',
469 '1',
470 __('Enabling this will allow users to see the slug while merging terms', 'simple-tags'),
471 ''
472 ),
473 ),
474
475 // taxopress ai tab
476 'taxopress-ai' => $taxopress_ai_fields,
477
478 // metabox tab
479 'metabox' => $metabox_fields,
480 )
481 );
482