PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / trunk
Secure Custom Fields vtrunk
6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / includes / admin / views / acf-taxonomy / advanced-settings.php
secure-custom-fields / includes / admin / views / acf-taxonomy Last commit date
advanced-settings.php 1 year ago basic-settings.php 1 year ago index.php 1 year ago list-empty.php 1 year ago
advanced-settings.php
1229 lines
1 <?php
2
3 global $acf_taxonomy;
4
5 foreach ( acf_get_combined_taxonomy_settings_tabs() as $tab_key => $tab_label ) {
6 acf_render_field_wrap(
7 array(
8 'type' => 'tab',
9 'label' => $tab_label,
10 'key' => 'acf_taxonomy_tabs',
11 )
12 );
13
14 $wrapper_class = str_replace( '_', '-', $tab_key );
15
16 echo '<div class="acf-taxonomy-advanced-settings acf-taxonomy-' . esc_attr( $wrapper_class ) . '-settings">';
17
18 switch ( $tab_key ) {
19 case 'general':
20 acf_render_field_wrap(
21 array(
22 'type' => 'true_false',
23 'key' => 'sort',
24 'name' => 'sort',
25 'prefix' => 'acf_taxonomy',
26 'value' => $acf_taxonomy['sort'],
27 'label' => __( 'Sort Terms', 'secure-custom-fields' ),
28 'instructions' => __( 'Whether terms in this taxonomy should be sorted in the order they are provided to `wp_set_object_terms()`.', 'secure-custom-fields' ),
29 'ui' => true,
30 )
31 );
32
33 acf_render_field_wrap(
34 array(
35 'type' => 'true_false',
36 'key' => 'default_term_enabled',
37 'name' => 'default_term_enabled',
38 'prefix' => 'acf_taxonomy[default_term]',
39 'value' => $acf_taxonomy['default_term']['default_term_enabled'],
40 'label' => __( 'Default Term', 'secure-custom-fields' ),
41 'instructions' => __( 'Create a term for the taxonomy that cannot be deleted. It will not be selected for posts by default.', 'secure-custom-fields' ),
42 'ui' => true,
43 )
44 );
45 ?>
46
47 <?php
48 acf_render_field_wrap(
49 array(
50 'type' => 'text',
51 'name' => 'default_term_name',
52 'key' => 'default_term_name',
53 'prefix' => 'acf_taxonomy[default_term]',
54 'value' => isset( $acf_taxonomy['default_term']['default_term_name'] ) ? $acf_taxonomy['default_term']['default_term_name'] : '',
55 'label' => __( 'Term Name', 'secure-custom-fields' ),
56 'instructions' => __( 'The name of the default term.', 'secure-custom-fields' ),
57 'required' => 1,
58 'conditions' => array(
59 'field' => 'default_term_enabled',
60 'operator' => '==',
61 'value' => '1',
62 ),
63 ),
64 'div',
65 'field'
66 );
67
68 acf_render_field_wrap(
69 array(
70 'type' => 'text',
71 'name' => 'default_term_slug',
72 'key' => 'default_term_slug',
73 'prefix' => 'acf_taxonomy[default_term]',
74 'value' => isset( $acf_taxonomy['default_term']['default_term_slug'] ) ? $acf_taxonomy['default_term']['default_term_slug'] : '',
75 'label' => __( 'Term Slug', 'secure-custom-fields' ),
76 'instructions' => __( 'Single word, no spaces. Underscores and dashes allowed.', 'secure-custom-fields' ),
77 'conditions' => array(
78 'field' => 'default_term_enabled',
79 'operator' => '==',
80 'value' => '1',
81 ),
82 ),
83 'div',
84 'field'
85 );
86
87 acf_render_field_wrap(
88 array(
89 'type' => 'text',
90 'name' => 'description',
91 'key' => 'default_term_description',
92 'prefix' => 'acf_taxonomy[default_term]',
93 'value' => isset( $acf_taxonomy['default_term']['default_term_description'] ) ? $acf_taxonomy['default_term']['default_term_description'] : '',
94 'label' => __( 'Term Description', 'secure-custom-fields' ),
95 'instructions' => __( 'A descriptive summary of the term.', 'secure-custom-fields' ),
96 'conditions' => array(
97 'field' => 'default_term_enabled',
98 'operator' => '==',
99 'value' => '1',
100 ),
101 ),
102 'div',
103 'field'
104 );
105
106 acf_render_field_wrap( array( 'type' => 'seperator' ) );
107
108 acf_render_field_wrap(
109 array(
110 'type' => 'text',
111 'name' => 'description',
112 'prefix' => 'acf_taxonomy',
113 'value' => $acf_taxonomy['description'],
114 'label' => __( 'Description', 'secure-custom-fields' ),
115 'instructions' => __( 'A descriptive summary of the taxonomy.', 'secure-custom-fields' ),
116 ),
117 'div',
118 'field'
119 );
120
121 acf_render_field_wrap( array( 'type' => 'seperator' ) );
122
123 acf_render_field_wrap(
124 array(
125 'type' => 'true_false',
126 'name' => 'active',
127 'key' => 'active',
128 'prefix' => 'acf_taxonomy',
129 'value' => $acf_taxonomy['active'],
130 'label' => __( 'Active', 'secure-custom-fields' ),
131 'instructions' => __( 'Active taxonomies are enabled and registered with WordPress.', 'secure-custom-fields' ),
132 'ui' => true,
133 'default' => 1,
134 )
135 );
136
137 break;
138 case 'labels':
139 echo '<div class="acf-field acf-regenerate-labels-bar">';
140 echo '<span class="acf-btn acf-btn-sm acf-btn-clear acf-regenerate-labels"><i class="acf-icon acf-icon-regenerate"></i>' . esc_html__( 'Regenerate', 'secure-custom-fields' ) . '</span>';
141 echo '<span class="acf-btn acf-btn-sm acf-btn-clear acf-clear-labels"><i class="acf-icon acf-icon-trash"></i>' . esc_html__( 'Clear', 'secure-custom-fields' ) . '</span>';
142 echo '<span class="acf-tip acf-labels-tip"><i class="acf-icon acf-icon-help acf-js-tooltip" title="' . esc_attr__( 'Regenerate all labels using the Singular and Plural labels', 'secure-custom-fields' ) . '"></i></span>';
143 echo '</div>';
144
145 acf_render_field_wrap(
146 array(
147 'type' => 'text',
148 'key' => 'menu_name',
149 'name' => 'menu_name',
150 'prefix' => 'acf_taxonomy[labels]',
151 'value' => $acf_taxonomy['labels']['menu_name'],
152 'data' => array(
153 /* translators: %s Plural form of taxonomy name */
154 'label' => '%s',
155 'replace' => 'plural',
156 ),
157 'label' => __( 'Menu Label', 'secure-custom-fields' ),
158 'instructions' => __( 'Assigns the menu name text.', 'secure-custom-fields' ),
159 'placeholder' => __( 'Tags', 'secure-custom-fields' ),
160 ),
161 'div',
162 'field'
163 );
164
165 acf_render_field_wrap(
166 array(
167 'type' => 'text',
168 'name' => 'all_items',
169 'prefix' => 'acf_taxonomy[labels]',
170 'value' => $acf_taxonomy['labels']['all_items'],
171 'data' => array(
172 /* translators: %s Plural form of taxonomy name */
173 'label' => __( 'All %s', 'secure-custom-fields' ),
174 'replace' => 'plural',
175 ),
176 'label' => __( 'All Items', 'secure-custom-fields' ),
177 'instructions' => __( 'Assigns the all items text.', 'secure-custom-fields' ),
178 'placeholder' => __( 'All Tags', 'secure-custom-fields' ),
179 ),
180 'div',
181 'field'
182 );
183
184 acf_render_field_wrap(
185 array(
186 'type' => 'text',
187 'key' => 'edit_item',
188 'name' => 'edit_item',
189 'prefix' => 'acf_taxonomy[labels]',
190 'value' => $acf_taxonomy['labels']['edit_item'],
191 'data' => array(
192 /* translators: %s Singular form of taxonomy name */
193 'label' => __( 'Edit %s', 'secure-custom-fields' ),
194 'replace' => 'singular',
195 ),
196 'label' => __( 'Edit Item', 'secure-custom-fields' ),
197 'instructions' => __( 'At the top of the editor screen when editing a term.', 'secure-custom-fields' ),
198 'placeholder' => __( 'Edit Tag', 'secure-custom-fields' ),
199 ),
200 'div',
201 'field'
202 );
203
204 acf_render_field_wrap(
205 array(
206 'type' => 'text',
207 'key' => 'view_item',
208 'name' => 'view_item',
209 'prefix' => 'acf_taxonomy[labels]',
210 'value' => $acf_taxonomy['labels']['view_item'],
211 'data' => array(
212 /* translators: %s Singular form of taxonomy name */
213 'label' => __( 'View %s', 'secure-custom-fields' ),
214 'replace' => 'singular',
215 ),
216 'label' => __( 'View Item', 'secure-custom-fields' ),
217 'instructions' => __( 'In the admin bar to view term during editing.', 'secure-custom-fields' ),
218 'placeholder' => __( 'View Tag', 'secure-custom-fields' ),
219 ),
220 'div',
221 'field'
222 );
223
224 acf_render_field_wrap(
225 array(
226 'type' => 'text',
227 'key' => 'update_item',
228 'name' => 'update_item',
229 'prefix' => 'acf_taxonomy[labels]',
230 'value' => $acf_taxonomy['labels']['update_item'],
231 'data' => array(
232 /* translators: %s Singular form of taxonomy name */
233 'label' => __( 'Update %s', 'secure-custom-fields' ),
234 'replace' => 'singular',
235 ),
236 'label' => __( 'Update Item', 'secure-custom-fields' ),
237 'instructions' => __( 'Assigns the update item text.', 'secure-custom-fields' ),
238 'placeholder' => __( 'Update Tag', 'secure-custom-fields' ),
239 ),
240 'div',
241 'field'
242 );
243
244 acf_render_field_wrap(
245 array(
246 'type' => 'text',
247 'key' => 'add_new_item',
248 'name' => 'add_new_item',
249 'prefix' => 'acf_taxonomy[labels]',
250 'value' => $acf_taxonomy['labels']['add_new_item'],
251 'data' => array(
252 /* translators: %s Singular form of taxonomy name */
253 'label' => __( 'Add New %s', 'secure-custom-fields' ),
254 'replace' => 'singular',
255 ),
256 'label' => __( 'Add New Item', 'secure-custom-fields' ),
257 'instructions' => __( 'Assigns the add new item text.', 'secure-custom-fields' ),
258 'placeholder' => __( 'Add New Tag', 'secure-custom-fields' ),
259 ),
260 'div',
261 'field'
262 );
263
264 acf_render_field_wrap(
265 array(
266 'type' => 'text',
267 'key' => 'new_item_name',
268 'name' => 'new_item_name',
269 'prefix' => 'acf_taxonomy[labels]',
270 'value' => $acf_taxonomy['labels']['new_item_name'],
271 'data' => array(
272 /* translators: %s Singular form of taxonomy name */
273 'label' => __( 'New %s Name', 'secure-custom-fields' ),
274 'replace' => 'singular',
275 ),
276 'label' => __( 'New Item Name', 'secure-custom-fields' ),
277 'instructions' => __( 'Assigns the new item name text.', 'secure-custom-fields' ),
278 'placeholder' => __( 'New Tag Name', 'secure-custom-fields' ),
279 ),
280 'div',
281 'field'
282 );
283
284 acf_render_field_wrap(
285 array(
286 'type' => 'text',
287 'key' => 'parent_item',
288 'name' => 'parent_item',
289 'prefix' => 'acf_taxonomy[labels]',
290 'value' => isset( $acf_taxonomy['labels']['parent_item'] ) ? $acf_taxonomy['labels']['parent_item'] : '',
291 'data' => array(
292 /* translators: %s Singular form of taxonomy name */
293 'label' => __( 'Parent %s', 'secure-custom-fields' ),
294 'replace' => 'singular',
295 ),
296 'label' => __( 'Parent Item', 'secure-custom-fields' ),
297 'instructions' => __( 'Assigns parent item text. Only used on hierarchical taxonomies.', 'secure-custom-fields' ),
298 'placeholder' => __( 'Parent Category', 'secure-custom-fields' ),
299 'conditions' => array(
300 'field' => 'hierarchical',
301 'operator' => '==',
302 'value' => '1',
303 ),
304 ),
305 'div',
306 'field'
307 );
308
309 acf_render_field_wrap(
310 array(
311 'type' => 'text',
312 'key' => 'parent_item_colon',
313 'name' => 'parent_item_colon',
314 'prefix' => 'acf_taxonomy[labels]',
315 'value' => isset( $acf_taxonomy['labels']['parent_item_colon'] ) ? $acf_taxonomy['labels']['parent_item_colon'] : '',
316 'data' => array(
317 /* translators: %s Singular form of taxonomy name */
318 'label' => __( 'Parent %s:', 'secure-custom-fields' ),
319 'replace' => 'singular',
320 ),
321 'label' => __( 'Parent Item With Colon', 'secure-custom-fields' ),
322 'instructions' => __( 'Assigns parent item text, but with a colon (:) added to the end.', 'secure-custom-fields' ),
323 'placeholder' => __( 'Parent Category:', 'secure-custom-fields' ),
324 'conditions' => array(
325 'field' => 'hierarchical',
326 'operator' => '==',
327 'value' => '1',
328 ),
329 ),
330 'div',
331 'field'
332 );
333
334 acf_render_field_wrap(
335 array(
336 'type' => 'text',
337 'name' => 'search_items',
338 'prefix' => 'acf_taxonomy[labels]',
339 'value' => $acf_taxonomy['labels']['search_items'],
340 'data' => array(
341 /* translators: %s Plural form of taxonomy name */
342 'label' => __( 'Search %s', 'secure-custom-fields' ),
343 'replace' => 'plural',
344 ),
345 'label' => __( 'Search Items', 'secure-custom-fields' ),
346 'instructions' => __( 'Assigns search items text.', 'secure-custom-fields' ),
347 'placeholder' => __( 'Search Tags', 'secure-custom-fields' ),
348 ),
349 'div',
350 'field'
351 );
352
353 acf_render_field_wrap(
354 array(
355 'type' => 'text',
356 'name' => 'popular_items',
357 'prefix' => 'acf_taxonomy[labels]',
358 'value' => isset( $acf_taxonomy['labels']['popular_items'] ) ? $acf_taxonomy['labels']['popular_items'] : '',
359 'data' => array(
360 /* translators: %s Plural form of taxonomy name */
361 'label' => __( 'Popular %s', 'secure-custom-fields' ),
362 'replace' => 'plural',
363 ),
364 'label' => __( 'Popular Items', 'secure-custom-fields' ),
365 'instructions' => __( 'Assigns popular items text. Only used for non-hierarchical taxonomies.', 'secure-custom-fields' ),
366 'placeholder' => __( 'Popular Tags', 'secure-custom-fields' ),
367 'conditions' => array(
368 'field' => 'hierarchical',
369 'operator' => '==',
370 'value' => '0',
371 ),
372 ),
373 'div',
374 'field'
375 );
376
377 acf_render_field_wrap(
378 array(
379 'type' => 'text',
380 'key' => 'separate_items_with_commas',
381 'name' => 'separate_items_with_commas',
382 'prefix' => 'acf_taxonomy[labels]',
383 'value' => isset( $acf_taxonomy['labels']['separate_items_with_commas'] ) ? $acf_taxonomy['labels']['separate_items_with_commas'] : '',
384 'data' => array(
385 /* translators: %s Plural form of taxonomy name */
386 'label' => __( 'Separate %s with commas', 'secure-custom-fields' ),
387 'replace' => 'plural',
388 'transform' => 'lower',
389 ),
390 'label' => __( 'Separate Items With Commas', 'secure-custom-fields' ),
391 'instructions' => __( 'Assigns the separate item with commas text used in the taxonomy meta box. Only used on non-hierarchical taxonomies.', 'secure-custom-fields' ),
392 'placeholder' => __( 'Separate tags with commas', 'secure-custom-fields' ),
393 'conditions' => array(
394 'field' => 'hierarchical',
395 'operator' => '==',
396 'value' => '0',
397 ),
398 ),
399 'div',
400 'field'
401 );
402
403 acf_render_field_wrap(
404 array(
405 'type' => 'text',
406 'key' => 'add_or_remove_items',
407 'name' => 'add_or_remove_items',
408 'prefix' => 'acf_taxonomy[labels]',
409 'value' => isset( $acf_taxonomy['labels']['add_or_remove_items'] ) ? $acf_taxonomy['labels']['add_or_remove_items'] : '',
410 'data' => array(
411 /* translators: %s Plural form of taxonomy name */
412 'label' => __( 'Add or remove %s', 'secure-custom-fields' ),
413 'replace' => 'plural',
414 'transform' => 'lower',
415 ),
416 'label' => __( 'Add Or Remove Items', 'secure-custom-fields' ),
417 'instructions' => __( 'Assigns the add or remove items text used in the meta box when JavaScript is disabled. Only used on non-hierarchical taxonomies', 'secure-custom-fields' ),
418 'placeholder' => __( 'Add or remove tags', 'secure-custom-fields' ),
419 'conditions' => array(
420 'field' => 'hierarchical',
421 'operator' => '==',
422 'value' => '0',
423 ),
424 ),
425 'div',
426 'field'
427 );
428
429 acf_render_field_wrap(
430 array(
431 'type' => 'text',
432 'key' => 'choose_from_most_used',
433 'name' => 'choose_from_most_used',
434 'prefix' => 'acf_taxonomy[labels]',
435 'value' => isset( $acf_taxonomy['labels']['choose_from_most_used'] ) ? $acf_taxonomy['labels']['choose_from_most_used'] : '',
436 'data' => array(
437 /* translators: %s Plural form of taxonomy name */
438 'label' => __( 'Choose from the most used %s', 'secure-custom-fields' ),
439 'replace' => 'plural',
440 'transform' => 'lower',
441 ),
442 'label' => __( 'Choose From Most Used', 'secure-custom-fields' ),
443 'instructions' => __( "Assigns the 'choose from most used' text used in the meta box when JavaScript is disabled. Only used on non-hierarchical taxonomies.", 'secure-custom-fields' ),
444 'placeholder' => __( 'Choose from the most used tags', 'secure-custom-fields' ),
445 'conditions' => array(
446 'field' => 'hierarchical',
447 'operator' => '==',
448 'value' => '0',
449 ),
450 ),
451 'div',
452 'field'
453 );
454
455 acf_render_field_wrap(
456 array(
457 'type' => 'text',
458 'key' => 'most_used',
459 'name' => 'most_used',
460 'prefix' => 'acf_taxonomy[labels]',
461 'value' => $acf_taxonomy['labels']['most_used'],
462 'label' => __( 'Most Used', 'secure-custom-fields' ),
463 'instructions' => __( 'Assigns text to the Title field of the Most Used tab.', 'secure-custom-fields' ),
464 'default' => __( 'Most Used', 'secure-custom-fields' ),
465 'placeholder' => __( 'Most Used', 'secure-custom-fields' ),
466 ),
467 'div',
468 'field'
469 );
470
471 acf_render_field_wrap(
472 array(
473 'type' => 'text',
474 'key' => 'not_found',
475 'name' => 'not_found',
476 'prefix' => 'acf_taxonomy[labels]',
477 'value' => $acf_taxonomy['labels']['not_found'],
478 'data' => array(
479 /* translators: %s Plural form of taxonomy name */
480 'label' => __( 'No %s found', 'secure-custom-fields' ),
481 'replace' => 'plural',
482 'transform' => 'lower',
483 ),
484 'label' => __( 'Not Found', 'secure-custom-fields' ),
485 'instructions' => __( "Assigns the text displayed when clicking the 'choose from most used' text in the taxonomy meta box when no tags are available, and assigns the text used in the terms list table when there are no items for a taxonomy.", 'secure-custom-fields' ),
486 'placeholder' => __( 'No tags found', 'secure-custom-fields' ),
487 ),
488 'div',
489 'field'
490 );
491
492 acf_render_field_wrap(
493 array(
494 'type' => 'text',
495 'key' => 'no_terms',
496 'name' => 'no_terms',
497 'prefix' => 'acf_taxonomy[labels]',
498 'value' => $acf_taxonomy['labels']['no_terms'],
499 'data' => array(
500 /* translators: %s Plural form of taxonomy name */
501 'label' => __( 'No %s', 'secure-custom-fields' ),
502 'replace' => 'plural',
503 'transform' => 'lower',
504 ),
505 'label' => __( 'No Terms', 'secure-custom-fields' ),
506 'instructions' => __( 'Assigns the text displayed in the posts and media list tables when no tags or categories are available.', 'secure-custom-fields' ),
507 'placeholder' => __( 'No tags', 'secure-custom-fields' ),
508 ),
509 'div',
510 'field'
511 );
512
513 acf_render_field_wrap(
514 array(
515 'type' => 'text',
516 'key' => 'name_field_description',
517 'name' => 'name_field_description',
518 'prefix' => 'acf_taxonomy[labels]',
519 'value' => $acf_taxonomy['labels']['name_field_description'],
520 'label' => __( 'Name Field Description', 'secure-custom-fields' ),
521 'instructions' => __( 'Describes the Name field on the Edit Tags screen.', 'secure-custom-fields' ),
522 'placeholder' => __( 'The name is how it appears on your site', 'secure-custom-fields' ),
523 'default' => __( 'The name is how it appears on your site', 'secure-custom-fields' ),
524 ),
525 'div',
526 'field'
527 );
528
529 acf_render_field_wrap(
530 array(
531 'type' => 'textarea',
532 'key' => 'slug_field_description',
533 'name' => 'slug_field_description',
534 'prefix' => 'acf_taxonomy[labels]',
535 'value' => $acf_taxonomy['labels']['slug_field_description'],
536 'label' => __( 'Slug Field Description', 'secure-custom-fields' ),
537 'instructions' => __( 'Describes the Slug field on the Edit Tags screen.', 'secure-custom-fields' ),
538 'placeholder' => __( 'The "slug" is the URL-friendly version of the name. It is usually all lower case and contains only letters, numbers, and hyphens.', 'secure-custom-fields' ),
539 'default' => __( 'The "slug" is the URL-friendly version of the name. It is usually all lower case and contains only letters, numbers, and hyphens.', 'secure-custom-fields' ),
540 ),
541 'div',
542 'field'
543 );
544
545 acf_render_field_wrap(
546 array(
547 'type' => 'text',
548 'key' => 'parent_field_description',
549 'name' => 'parent_field_description',
550 'prefix' => 'acf_taxonomy[labels]',
551 'value' => isset( $acf_taxonomy['labels']['parent_field_description'] ) ? $acf_taxonomy['labels']['parent_field_description'] : '',
552 'label' => __( 'Parent Field Description', 'secure-custom-fields' ),
553 'instructions' => __( 'Describes the Parent field on the Edit Tags screen.', 'secure-custom-fields' ),
554 'placeholder' => __( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band', 'secure-custom-fields' ),
555 'default' => __( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band', 'secure-custom-fields' ),
556 'conditions' => array(
557 'field' => 'hierarchical',
558 'operator' => '==',
559 'value' => '1',
560 ),
561 ),
562 'div',
563 'field'
564 );
565
566 acf_render_field_wrap(
567 array(
568 'type' => 'text',
569 'key' => 'desc_field_description',
570 'name' => 'desc_field_description',
571 'prefix' => 'acf_taxonomy[labels]',
572 'value' => $acf_taxonomy['labels']['desc_field_description'],
573 'label' => __( 'Description Field Description', 'secure-custom-fields' ),
574 'instructions' => __( 'Describes the Description field on the Edit Tags screen.', 'secure-custom-fields' ),
575 'placeholder' => __( 'The description is not prominent by default; however, some themes may show it.', 'secure-custom-fields' ),
576 'default' => __( 'The description is not prominent by default; however, some themes may show it.', 'secure-custom-fields' ),
577 ),
578 'div',
579 'field'
580 );
581
582 acf_render_field_wrap(
583 array(
584 'type' => 'text',
585 'key' => 'filter_by_item',
586 'name' => 'filter_by_item',
587 'prefix' => 'acf_taxonomy[labels]',
588 'value' => isset( $acf_taxonomy['labels']['filter_by_item'] ) ? $acf_taxonomy['labels']['filter_by_item'] : '',
589 'data' => array(
590 /* translators: %s Singular form of taxonomy name */
591 'label' => __( 'Filter by %s', 'secure-custom-fields' ),
592 'replace' => 'singular',
593 'transform' => 'lower',
594 ),
595 'label' => __( 'Filter By Item', 'secure-custom-fields' ),
596 'instructions' => __( 'Assigns text to the filter button in the posts lists table.', 'secure-custom-fields' ),
597 'placeholder' => __( 'Filter by category', 'secure-custom-fields' ),
598 'conditions' => array(
599 'field' => 'hierarchical',
600 'operator' => '==',
601 'value' => '1',
602 ),
603 ),
604 'div',
605 'field'
606 );
607
608 acf_render_field_wrap(
609 array(
610 'type' => 'text',
611 'key' => 'items_list_navigation',
612 'name' => 'items_list_navigation',
613 'prefix' => 'acf_taxonomy[labels]',
614 'value' => $acf_taxonomy['labels']['items_list_navigation'],
615 'data' => array(
616 /* translators: %s Plural form of taxonomy name */
617 'label' => __( '%s list navigation', 'secure-custom-fields' ),
618 'replace' => 'plural',
619 ),
620 'label' => __( 'Items List Navigation', 'secure-custom-fields' ),
621 'instructions' => __( 'Assigns text to the table pagination hidden heading.', 'secure-custom-fields' ),
622 'placeholder' => __( 'Tags list navigation', 'secure-custom-fields' ),
623 ),
624 'div',
625 'field'
626 );
627
628 acf_render_field_wrap(
629 array(
630 'type' => 'text',
631 'key' => 'items_list',
632 'name' => 'items_list',
633 'prefix' => 'acf_taxonomy[labels]',
634 'value' => $acf_taxonomy['labels']['items_list'],
635 'data' => array(
636 /* translators: %s Plural form of taxonomy name */
637 'label' => __( '%s list', 'secure-custom-fields' ),
638 'replace' => 'plural',
639 ),
640 'label' => __( 'Items List', 'secure-custom-fields' ),
641 'instructions' => __( 'Assigns text to the table hidden heading.', 'secure-custom-fields' ),
642 'placeholder' => __( 'Tags list', 'secure-custom-fields' ),
643 ),
644 'div',
645 'field'
646 );
647
648 acf_render_field_wrap(
649 array(
650 'type' => 'text',
651 'key' => 'back_to_items',
652 'name' => 'back_to_items',
653 'prefix' => 'acf_taxonomy[labels]',
654 'value' => $acf_taxonomy['labels']['back_to_items'],
655 'data' => array(
656 /* translators: %s Plural form of taxonomy name */
657 'label' => __( '← Go to %s', 'secure-custom-fields' ),
658 'replace' => 'plural',
659 'transform' => 'lower',
660 ),
661 'label' => __( 'Back To Items', 'secure-custom-fields' ),
662 'instructions' => __( 'Assigns the text used to link back to the main index after updating a term.', 'secure-custom-fields' ),
663 'placeholder' => __( '← Go to tags', 'secure-custom-fields' ),
664 ),
665 'div',
666 'field'
667 );
668
669 acf_render_field_wrap(
670 array(
671 'type' => 'text',
672 'key' => 'item_link',
673 'name' => 'item_link',
674 'prefix' => 'acf_taxonomy[labels]',
675 'value' => $acf_taxonomy['labels']['item_link'],
676 'data' => array(
677 /* translators: %s Singular form of taxonomy name */
678 'label' => __( '%s Link', 'secure-custom-fields' ),
679 'replace' => 'singular',
680 ),
681 'label' => __( 'Item Link', 'secure-custom-fields' ),
682 'instructions' => __( 'Assigns a title for navigation link block variation used in the block editor.', 'secure-custom-fields' ),
683 'placeholder' => __( 'Tag Link', 'secure-custom-fields' ),
684 ),
685 'div',
686 'field'
687 );
688
689 acf_render_field_wrap(
690 array(
691 'type' => 'text',
692 'key' => 'item_link_description',
693 'name' => 'item_link_description',
694 'prefix' => 'acf_taxonomy[labels]',
695 'value' => $acf_taxonomy['labels']['item_link_description'],
696 'data' => array(
697 /* translators: %s Singular form of taxonomy name */
698 'label' => __( 'A link to a %s', 'secure-custom-fields' ),
699 'replace' => 'singular',
700 'transform' => 'lower',
701 ),
702 'label' => __( 'Item Link Description', 'secure-custom-fields' ),
703 'instructions' => __( 'Describes a navigation link block variation used in the block editor.', 'secure-custom-fields' ),
704 'placeholder' => __( 'A link to a tag', 'secure-custom-fields' ),
705 ),
706 'div',
707 'field'
708 );
709 break;
710 case 'visibility':
711 acf_render_field_wrap(
712 array(
713 'type' => 'true_false',
714 'key' => 'show_ui',
715 'name' => 'show_ui',
716 'prefix' => 'acf_taxonomy',
717 'value' => $acf_taxonomy['show_ui'],
718 'label' => __( 'Show In UI', 'secure-custom-fields' ),
719 'instructions' => __( 'Items can be edited and managed in the admin dashboard.', 'secure-custom-fields' ),
720 'default' => 1,
721 'ui' => true,
722 ),
723 'div'
724 );
725
726 acf_render_field_wrap(
727 array(
728 'type' => 'true_false',
729 'key' => 'show_in_menu',
730 'name' => 'show_in_menu',
731 'prefix' => 'acf_taxonomy',
732 'value' => $acf_taxonomy['show_in_menu'],
733 'label' => __( 'Show In Admin Menu', 'secure-custom-fields' ),
734 'instructions' => __( 'Admin editor navigation in the sidebar menu.', 'secure-custom-fields' ),
735 'default' => 1,
736 'ui' => true,
737 'conditions' => array(
738 'field' => 'show_ui',
739 'operator' => '==',
740 'value' => '1',
741 ),
742 )
743 );
744
745 $acf_tags_meta_box_text = __( 'Tags Meta Box', 'secure-custom-fields' );
746 $acf_categories_meta_box_text = __( 'Categories Meta Box', 'secure-custom-fields' );
747 $acf_default_meta_box_text = empty( $acf_taxonomy['hierarchical'] ) ? $acf_tags_meta_box_text : $acf_categories_meta_box_text;
748
749 acf_render_field_wrap(
750 array(
751 'type' => 'select',
752 'key' => 'meta_box',
753 'name' => 'meta_box',
754 'class' => 'meta_box',
755 'prefix' => 'acf_taxonomy',
756 'value' => $acf_taxonomy['meta_box'],
757 'label' => __( 'Meta Box', 'secure-custom-fields' ),
758 'instructions' => __( 'Controls the meta box on the content editor screen. By default, the Categories meta box is shown for hierarchical taxonomies, and the Tags meta box is shown for non-hierarchical taxonomies.', 'secure-custom-fields' ),
759 'hide_search' => true,
760 'choices' => array(
761 'default' => $acf_default_meta_box_text,
762 'custom' => __( 'Custom Meta Box', 'secure-custom-fields' ),
763 'disabled' => __( 'No Meta Box', 'secure-custom-fields' ),
764 ),
765 'data' => array(
766 'tags_meta_box' => __( 'Tags Meta Box', 'secure-custom-fields' ),
767 'categories_meta_box' => __( 'Categories Meta Box', 'secure-custom-fields' ),
768 ),
769 'conditions' => array(
770 'field' => 'show_ui',
771 'operator' => '==',
772 'value' => '1',
773 ),
774 ),
775 'div',
776 'field'
777 );
778
779 acf_render_field_wrap(
780 array(
781 'type' => 'seperator',
782 'conditions' => array(
783 array(
784 'field' => 'meta_box',
785 'operator' => '!=',
786 'value' => 'custom',
787 ),
788 array(
789 'field' => 'show_ui',
790 'operator' => '==',
791 'value' => '1',
792 ),
793 ),
794 )
795 );
796
797 acf_render_field_wrap(
798 array(
799 'type' => 'text',
800 'name' => 'meta_box_cb',
801 'key' => 'meta_box_cb',
802 'prefix' => 'acf_taxonomy',
803 'value' => $acf_taxonomy['meta_box_cb'],
804 'label' => __( 'Register Meta Box Callback', 'secure-custom-fields' ),
805 'instructions' => __( 'A PHP function name to be called to handle the content of a meta box on your taxonomy. For security, this callback will be executed in a special context without access to any superglobals like $_POST or $_GET.', 'secure-custom-fields' ),
806 'conditions' => array(
807 'field' => 'meta_box',
808 'operator' => '==',
809 'value' => 'custom',
810 ),
811 ),
812 'div',
813 'field'
814 );
815
816 acf_render_field_wrap(
817 array(
818 'type' => 'text',
819 'name' => 'meta_box_sanitize_cb',
820 'key' => 'meta_box_sanitize_cb',
821 'prefix' => 'acf_taxonomy',
822 'value' => $acf_taxonomy['meta_box_sanitize_cb'],
823 'label' => __( 'Meta Box Sanitization Callback', 'secure-custom-fields' ),
824 'instructions' => __( 'A PHP function name to be called for sanitizing taxonomy data saved from a meta box.', 'secure-custom-fields' ),
825 'conditions' => array(
826 'field' => 'meta_box',
827 'operator' => '==',
828 'value' => 'custom',
829 ),
830 ),
831 'div',
832 'field'
833 );
834
835 acf_render_field_wrap(
836 array(
837 'type' => 'seperator',
838 'conditions' => array(
839 'field' => 'meta_box',
840 'operator' => '==',
841 'value' => 'custom',
842 ),
843 )
844 );
845
846 acf_render_field_wrap(
847 array(
848 'type' => 'true_false',
849 'key' => 'show_in_nav_menus',
850 'name' => 'show_in_nav_menus',
851 'prefix' => 'acf_taxonomy',
852 'value' => $acf_taxonomy['show_in_nav_menus'],
853 'label' => __( 'Appearance Menus Support', 'secure-custom-fields' ),
854 'instructions' => __( "Allow items to be added to menus in the 'Appearance' > 'Menus' screen. Must be turned on in 'Screen options'.", 'secure-custom-fields' ),
855 'default' => 1,
856 'ui' => true,
857 )
858 );
859
860 acf_render_field_wrap(
861 array(
862 'type' => 'true_false',
863 'key' => 'show_tagcloud',
864 'name' => 'show_tagcloud',
865 'prefix' => 'acf_taxonomy',
866 'value' => $acf_taxonomy['show_tagcloud'],
867 'label' => __( 'Tag Cloud', 'secure-custom-fields' ),
868 'instructions' => __( 'List the taxonomy in the Tag Cloud Widget controls.', 'secure-custom-fields' ),
869 'default' => 1,
870 'ui' => true,
871 )
872 );
873
874 acf_render_field_wrap(
875 array(
876 'type' => 'true_false',
877 'key' => 'show_in_quick_edit',
878 'name' => 'show_in_quick_edit',
879 'prefix' => 'acf_taxonomy',
880 'value' => $acf_taxonomy['show_in_quick_edit'],
881 'label' => __( 'Quick Edit', 'secure-custom-fields' ),
882 'instructions' => __( 'Show the taxonomy in the quick/bulk edit panel.', 'secure-custom-fields' ),
883 'default' => 1,
884 'ui' => true,
885 )
886 );
887
888 acf_render_field_wrap(
889 array(
890 'type' => 'true_false',
891 'key' => 'show_admin_column',
892 'name' => 'show_admin_column',
893 'prefix' => 'acf_taxonomy',
894 'value' => $acf_taxonomy['show_admin_column'],
895 'label' => __( 'Show Admin Column', 'secure-custom-fields' ),
896 'instructions' => __( 'Display a column for the taxonomy on post type listing screens.', 'secure-custom-fields' ),
897 'ui' => true,
898 )
899 );
900
901 break;
902 case 'urls':
903 acf_render_field_wrap(
904 array(
905 'type' => 'select',
906 'name' => 'permalink_rewrite',
907 'key' => 'permalink_rewrite',
908 'prefix' => 'acf_taxonomy[rewrite]',
909 'value' => isset( $acf_taxonomy['rewrite']['permalink_rewrite'] ) ? $acf_taxonomy['rewrite']['permalink_rewrite'] : 'taxonomy_key',
910 'label' => __( 'Permalink Rewrite', 'secure-custom-fields' ),
911 'instructions' => __( 'Select the type of permalink to use for this taxonomy.', 'secure-custom-fields' ) . ' {slug}.',
912 'choices' => array(
913 'taxonomy_key' => __( 'Taxonomy Key', 'secure-custom-fields' ),
914 'custom_permalink' => __( 'Custom Permalink', 'secure-custom-fields' ),
915 'no_permalink' => __( 'No Permalink (prevent URL rewriting)', 'secure-custom-fields' ),
916 ),
917 'default' => 'taxonomy_key',
918 'hide_search' => true,
919 'data' => array(
920 /* translators: this string will be appended with the new permalink structure. */
921 'taxonomy_key_instructions' => __( 'Rewrite the URL using the taxonomy key as the slug. Your permalink structure will be', 'secure-custom-fields' ) . ' {slug}.',
922 /* translators: this string will be appended with the new permalink structure. */
923 'custom_permalink_instructions' => __( 'Rewrite the URL using a custom slug defined in the input below. Your permalink structure will be', 'secure-custom-fields' ) . ' {slug}.',
924 'no_permalink_instructions' => __( 'Permalinks for this taxonomy are disabled.', 'secure-custom-fields' ),
925 'site_url' => get_site_url(),
926 ),
927 'class' => 'permalink_rewrite',
928 ),
929 'div',
930 'field'
931 );
932
933 acf_render_field_wrap(
934 array(
935 'type' => 'text',
936 'name' => 'slug',
937 'key' => 'slug',
938 'prefix' => 'acf_taxonomy[rewrite]',
939 'value' => isset( $acf_taxonomy['rewrite']['slug'] ) ? $acf_taxonomy['rewrite']['slug'] : '',
940 'label' => __( 'URL Slug', 'secure-custom-fields' ),
941 'instructions' => __( 'Customize the slug used in the URL', 'secure-custom-fields' ),
942 'conditions' => array(
943 'field' => 'permalink_rewrite',
944 'operator' => '==',
945 'value' => 'custom_permalink',
946 ),
947 'class' => 'rewrite_slug_field',
948 ),
949 'div',
950 'field'
951 );
952
953 acf_render_field_wrap(
954 array(
955 'type' => 'true_false',
956 'name' => 'with_front',
957 'key' => 'with_front',
958 'prefix' => 'acf_taxonomy[rewrite]',
959 'value' => isset( $acf_taxonomy['rewrite']['with_front'] ) ? $acf_taxonomy['rewrite']['with_front'] : true,
960 'label' => __( 'Front URL Prefix', 'secure-custom-fields' ),
961 'instructions' => __( 'Alters the permalink structure to add the `WP_Rewrite::$front` prefix to URLs.', 'secure-custom-fields' ),
962 'ui' => true,
963 'default' => 1,
964 'conditions' => array(
965 'field' => 'permalink_rewrite',
966 'operator' => '!=',
967 'value' => 'no_permalink',
968 ),
969 ),
970 'div'
971 );
972
973 acf_render_field_wrap(
974 array(
975 'type' => 'true_false',
976 'name' => 'rewrite_hierarchical',
977 'key' => 'rewrite_hierarchical',
978 'prefix' => 'acf_taxonomy[rewrite]',
979 'value' => isset( $acf_taxonomy['rewrite']['rewrite_hierarchical'] ) ? $acf_taxonomy['rewrite']['rewrite_hierarchical'] : false,
980 'label' => __( 'Hierarchical', 'secure-custom-fields' ),
981 'instructions' => __( 'Parent-child terms in URLs for hierarchical taxonomies.', 'secure-custom-fields' ),
982 'ui' => true,
983 'default' => 0,
984 'conditions' => array(
985 'field' => 'permalink_rewrite',
986 'operator' => '!=',
987 'value' => 'no_permalink',
988 ),
989 ),
990 'div'
991 );
992
993 acf_render_field_wrap( array( 'type' => 'seperator' ) );
994
995 acf_render_field_wrap(
996 array(
997 'type' => 'true_false',
998 'name' => 'publicly_queryable',
999 'key' => 'publicly_queryable',
1000 'prefix' => 'acf_taxonomy',
1001 'value' => $acf_taxonomy['publicly_queryable'],
1002 'label' => __( 'Publicly Queryable', 'secure-custom-fields' ),
1003 'instructions' => __( 'URLs for an item and items can be accessed with a query string.', 'secure-custom-fields' ),
1004 'default' => 1,
1005 'ui' => true,
1006 )
1007 );
1008
1009 acf_render_field_wrap(
1010 array(
1011 'type' => 'seperator',
1012 'conditions' => array(
1013 'field' => 'publicly_queryable',
1014 'operator' => '==',
1015 'value' => 1,
1016 ),
1017 )
1018 );
1019
1020 acf_render_field_wrap(
1021 array(
1022 'type' => 'select',
1023 'name' => 'query_var',
1024 'key' => 'query_var',
1025 'prefix' => 'acf_taxonomy',
1026 'value' => $acf_taxonomy['query_var'],
1027 'label' => __( 'Query Variable Support', 'secure-custom-fields' ),
1028 'instructions' => __( 'Terms can be accessed using the non-pretty permalink, e.g., {query_var}={term_slug}.', 'secure-custom-fields' ),
1029 'choices' => array(
1030 'post_type_key' => __( 'Taxonomy Key', 'secure-custom-fields' ),
1031 'custom_query_var' => __( 'Custom Query Variable', 'secure-custom-fields' ),
1032 'none' => __( 'No Query Variable Support', 'secure-custom-fields' ),
1033 ),
1034 'default' => 1,
1035 'hide_search' => true,
1036 'class' => 'query_var',
1037 'conditions' => array(
1038 'field' => 'publicly_queryable',
1039 'operator' => '==',
1040 'value' => 1,
1041 ),
1042 ),
1043 'div',
1044 'field'
1045 );
1046
1047 acf_render_field_wrap(
1048 array(
1049 'type' => 'text',
1050 'name' => 'query_var_name',
1051 'key' => 'query_var_name',
1052 'prefix' => 'acf_taxonomy',
1053 'value' => $acf_taxonomy['query_var_name'],
1054 'label' => __( 'Query Variable', 'secure-custom-fields' ),
1055 'instructions' => __( 'Customize the query variable name', 'secure-custom-fields' ),
1056 'ui' => true,
1057 'conditions' => array(
1058 'field' => 'query_var',
1059 'operator' => '==',
1060 'value' => 'custom_query_var',
1061 ),
1062 ),
1063 'div',
1064 'field'
1065 );
1066
1067 break;
1068 case 'permissions':
1069 $acf_all_caps = array();
1070
1071 foreach ( wp_roles()->roles as $acf_role ) {
1072 $acf_all_caps = array_merge( $acf_all_caps, $acf_role['capabilities'] );
1073 }
1074 $acf_all_caps = array_unique( array_keys( $acf_all_caps ) );
1075 $acf_all_caps = array_combine( $acf_all_caps, $acf_all_caps );
1076
1077 acf_render_field_wrap(
1078 array(
1079 'type' => 'select',
1080 'name' => 'manage_terms',
1081 'key' => 'manage_terms',
1082 'prefix' => 'acf_taxonomy[capabilities]',
1083 'value' => $acf_taxonomy['capabilities']['manage_terms'],
1084 'label' => __( 'Manage Terms Capability', 'secure-custom-fields' ),
1085 'instructions' => __( 'The capability name for managing terms of this taxonomy.', 'secure-custom-fields' ),
1086 'choices' => $acf_all_caps,
1087 'default' => 'manage_categories',
1088 'class' => 'acf-taxonomy-manage_terms',
1089 ),
1090 'div',
1091 'field'
1092 );
1093
1094 acf_render_field_wrap(
1095 array(
1096 'type' => 'select',
1097 'name' => 'edit_terms',
1098 'key' => 'edit_terms',
1099 'prefix' => 'acf_taxonomy[capabilities]',
1100 'value' => $acf_taxonomy['capabilities']['edit_terms'],
1101 'label' => __( 'Edit Terms Capability', 'secure-custom-fields' ),
1102 'instructions' => __( 'The capability name for editing terms of this taxonomy.', 'secure-custom-fields' ),
1103 'choices' => $acf_all_caps,
1104 'default' => 'manage_categories',
1105 'class' => 'acf-taxonomy-edit_terms',
1106 ),
1107 'div',
1108 'field'
1109 );
1110
1111 acf_render_field_wrap(
1112 array(
1113 'type' => 'select',
1114 'name' => 'delete_terms',
1115 'key' => 'delete_terms',
1116 'prefix' => 'acf_taxonomy[capabilities]',
1117 'value' => $acf_taxonomy['capabilities']['delete_terms'],
1118 'label' => __( 'Delete Terms Capability', 'secure-custom-fields' ),
1119 'instructions' => __( 'The capability name for deleting terms of this taxonomy.', 'secure-custom-fields' ),
1120 'choices' => $acf_all_caps,
1121 'default' => 'manage_categories',
1122 'class' => 'acf-taxonomy-delete_terms',
1123 ),
1124 'div',
1125 'field'
1126 );
1127
1128 acf_render_field_wrap(
1129 array(
1130 'type' => 'select',
1131 'name' => 'assign_terms',
1132 'key' => 'assign_terms',
1133 'prefix' => 'acf_taxonomy[capabilities]',
1134 'value' => $acf_taxonomy['capabilities']['assign_terms'],
1135 'label' => __( 'Assign Terms Capability', 'secure-custom-fields' ),
1136 'instructions' => __( 'The capability name for assigning terms of this taxonomy.', 'secure-custom-fields' ),
1137 'choices' => $acf_all_caps,
1138 'default' => 'edit_posts',
1139 'class' => 'acf-taxonomy-assign_terms',
1140 ),
1141 'div',
1142 'field'
1143 );
1144
1145 break;
1146 case 'rest_api':
1147 acf_render_field_wrap(
1148 array(
1149 'type' => 'true_false',
1150 'key' => 'show_in_rest',
1151 'name' => 'show_in_rest',
1152 'prefix' => 'acf_taxonomy',
1153 'value' => $acf_taxonomy['show_in_rest'],
1154 'label' => __( 'Show In REST API', 'secure-custom-fields' ),
1155 'instructions' => __( 'Expose this post type in the REST API.', 'secure-custom-fields' ),
1156 'default' => 1,
1157 'ui' => true,
1158 ),
1159 'div'
1160 );
1161 ?>
1162
1163 <?php
1164 acf_render_field_wrap(
1165 array(
1166 'type' => 'text',
1167 'key' => 'rest_base',
1168 'name' => 'rest_base',
1169 'prefix' => 'acf_taxonomy',
1170 'value' => $acf_taxonomy['rest_base'],
1171 'label' => __( 'Base URL', 'secure-custom-fields' ),
1172 'instructions' => __( 'The base URL for the post type REST API URLs.', 'secure-custom-fields' ),
1173 'conditions' => array(
1174 'field' => 'show_in_rest',
1175 'operator' => '==',
1176 'value' => '1',
1177 ),
1178 ),
1179 'div',
1180 'field'
1181 );
1182
1183 acf_render_field_wrap(
1184 array(
1185 'type' => 'text',
1186 'name' => 'rest_namespace',
1187 'key' => 'rest_namespace',
1188 'prefix' => 'acf_taxonomy',
1189 'value' => $acf_taxonomy['rest_namespace'],
1190 'label' => __( 'Namespace Route', 'secure-custom-fields' ),
1191 'instructions' => __( 'The namespace part of the REST API URL.', 'secure-custom-fields' ),
1192 'placeholder' => 'wp/v2',
1193 'conditions' => array(
1194 'field' => 'show_in_rest',
1195 'operator' => '==',
1196 'value' => '1',
1197 ),
1198 ),
1199 'div',
1200 'field'
1201 );
1202
1203 acf_render_field_wrap(
1204 array(
1205 'type' => 'text',
1206 'key' => 'rest_controller_class',
1207 'name' => 'rest_controller_class',
1208 'prefix' => 'acf_taxonomy',
1209 'value' => $acf_taxonomy['rest_controller_class'],
1210 'label' => __( 'Controller Class', 'secure-custom-fields' ),
1211 'instructions' => __( 'Optional custom controller to use instead of `WP_REST_Terms_Controller `.', 'secure-custom-fields' ),
1212 'placeholder' => 'WP_REST_Terms_Controller',
1213 'conditions' => array(
1214 'field' => 'show_in_rest',
1215 'operator' => '==',
1216 'value' => '1',
1217 ),
1218 ),
1219 'div',
1220 'field'
1221 );
1222 break;
1223 }
1224
1225 do_action( "acf/taxonomy/render_settings_tab/{$tab_key}", $acf_taxonomy );
1226
1227 echo '</div>';
1228 }
1229