Ver código fonte

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

tags/0.9.0
j 5 anos atrás
pai
commit
991f31cbab
1 arquivos alterados com 14 adições e 0 exclusões
  1. 14
    0
      plugins/cia-post-types/includes/p2p-mappings.php

+ 14
- 0
plugins/cia-post-types/includes/p2p-mappings.php Ver arquivo

21
         'reciprocal' => true,
21
         'reciprocal' => true,
22
         'admin_box' => $admin_box
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
     p2p_register_connection_type([
39
     p2p_register_connection_type([
26
         'name' => 'episodes_to_exhibitions',
40
         'name' => 'episodes_to_exhibitions',

Carregando…
Cancelar
Salvar