|
|
@@ -77,9 +77,27 @@ endforeach;
|
|
77
|
77
|
|
|
78
|
78
|
add_action('init', 'create_materials_taxonomy');
|
|
79
|
79
|
function create_materials_taxonomy() {
|
|
80
|
|
- $post_types_that_show_materials = [ 'artist' ];
|
|
|
80
|
+ $post_types_that_show_materials = [ 'artist', 'exhibition', 'event' ];
|
|
81
|
81
|
register_taxonomy('material', $post_types_that_show_materials, [ "label" => "Materials"]);
|
|
82
|
82
|
}
|
|
|
83
|
+
|
|
|
84
|
+add_action('init', 'create_artist_types_taxonomy');
|
|
|
85
|
+function create_artist_types_taxonomy() {
|
|
|
86
|
+ $post_types_that_show_artist_types = [ 'artist' ];
|
|
|
87
|
+ register_taxonomy('artist type', $post_types_that_show_artist_types, [ "label" => "Artist Type"]);
|
|
|
88
|
+}
|
|
|
89
|
+
|
|
|
90
|
+add_action('init', 'create_event_types_taxonomy');
|
|
|
91
|
+function create_event_types_taxonomy() {
|
|
|
92
|
+ $post_types_that_show_event_types = [ 'event' ];
|
|
|
93
|
+ register_taxonomy('event type', $post_types_that_show_event_types, [ "label" => "Event Type"]);
|
|
|
94
|
+}
|
|
|
95
|
+
|
|
|
96
|
+add_action('init', 'create_exhibit_types_taxonomy');
|
|
|
97
|
+function create_exhibit_types_taxonomy() {
|
|
|
98
|
+ $post_types_that_show_exhibit_types = [ 'exhibition' ];
|
|
|
99
|
+ register_taxonomy('Exhibition type', $post_types_that_show_exhibit_types, [ "label" => "Exhibition Type"]);
|
|
|
100
|
+}
|
|
83
|
101
|
/* Plugin Logic -- END * /
|
|
84
|
102
|
|
|
85
|
103
|
/**
|