1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| <?php
| // /taxonomies/city.php
| function ajv_city():array
| {
| return [
| 'singular' => 'City',
| 'plural' => 'Cities',
| 'icon' => 'city',
| 'description' => [
| 'From Edmonton, yes - but also throughout Alberta.'
| ],
| 'show_feed' => true,
| 'show_directory' => true,
| 'approve_new' => false,
| 'rewrite' => [
| 'slug' => 'in',
| 'with_front' => false,
| 'hierarchical' => true,
| ],
| 'hierarchical' => true,
| 'for_content' => [
| 'art',
| 'design',
| 'development',
| 'strategy',
| 'writing',
| ],
| 'fields' => [
| 'term_name' => [
| 'label' => 'Name',
| 'type' => 'text',
| 'quickEdit' => true,
| ],
| 'common' => [ 'wiki' ]
| ]
| ];
| }
|
|