PluginProbe
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms / 3.44.0
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms v3.44.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 3.6.2 All 177 releases
simple-tags / inc / helper.options.admin.php

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

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