PluginProbe
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms / 3.51.0
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms v3.51.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.51.0, at inc/helper.options.admin.php

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