소스 검색

:sparkles: adding techniques to frontend and backend

tags/0.9.0
J 4 년 전
부모
커밋
bb052b061e

+ 2
- 1
plugins/cia-endpoints/includes/all-types.php 파일 보기

@@ -11,7 +11,8 @@
11 11
             'guide',
12 12
             'short',
13 13
             'object',
14
-            'publication'
14
+            'publication',
15
+            'technique'
15 16
         ];
16 17
     }
17 18
 ?>

+ 1
- 0
plugins/cia-post-types/includes/custom-types.php 파일 보기

@@ -9,6 +9,7 @@
9 9
             'event',
10 10
             'object',
11 11
             'publication',
12
+            'technique',
12 13
         ];
13 14
     }
14 15
 

+ 7
- 0
plugins/cia-post-types/includes/p2p-mappings.php 파일 보기

@@ -42,6 +42,13 @@ function all_connection_types() {
42 42
         'reciprocal' => true,
43 43
         'admin_box' => $admin_box
44 44
     ]);
45
+    p2p_register_connection_type([
46
+        'name' => 'artists_to_techniques',
47
+        'to' => 'artist',
48
+        'from' => 'technique',
49
+        'reciprocal' => true,
50
+        'admin_box' => $admin_box
51
+    ]);
45 52
 
46 53
     p2p_register_connection_type([
47 54
         'name' => 'episodes_to_exhibitions',

+ 1
- 0
vue-theme/src/utils/helpers.js 파일 보기

@@ -33,6 +33,7 @@ const postTypes = [
33 33
     'guide',
34 34
     'object',
35 35
     'publication',
36
+    'technique',
36 37
 ]
37 38
 
38 39
 const ytThumbnail = (url, desiredSize) => {

Loading…
취소
저장