ソースを参照

:sparkles: added artst<->event and artist<->exhibition

tags/0.9.0
j 5年前
コミット
991f31cbab
1個のファイルの変更14行の追加0行の削除
  1. 14
    0
      plugins/cia-post-types/includes/p2p-mappings.php

+ 14
- 0
plugins/cia-post-types/includes/p2p-mappings.php ファイルの表示

@@ -21,6 +21,20 @@ function all_connection_types() {
21 21
         'reciprocal' => true,
22 22
         'admin_box' => $admin_box
23 23
     ]);
24
+    p2p_register_connection_type([
25
+        'name' => 'artists_to_exhibitions',
26
+        'to' => 'artist',
27
+        'from' => 'exhibition',
28
+        'reciprocal' => true,
29
+        'admin_box' => $admin_box
30
+    ]);
31
+    p2p_register_connection_type([
32
+        'name' => 'artists_to_events',
33
+        'to' => 'artist',
34
+        'from' => 'event',
35
+        'reciprocal' => true,
36
+        'admin_box' => $admin_box
37
+    ]);
24 38
 
25 39
     p2p_register_connection_type([
26 40
         'name' => 'episodes_to_exhibitions',

読み込み中…
キャンセル
保存