|
|
@@ -35,6 +35,13 @@ function all_connection_types() {
|
|
35
|
35
|
'reciprocal' => true,
|
|
36
|
36
|
'admin_box' => $admin_box
|
|
37
|
37
|
]);
|
|
|
38
|
+ p2p_register_connection_type([
|
|
|
39
|
+ 'name' => 'artists_to_posts',
|
|
|
40
|
+ 'to' => 'artist',
|
|
|
41
|
+ 'from' => 'post',
|
|
|
42
|
+ 'reciprocal' => true,
|
|
|
43
|
+ 'admin_box' => $admin_box
|
|
|
44
|
+ ]);
|
|
38
|
45
|
|
|
39
|
46
|
p2p_register_connection_type([
|
|
40
|
47
|
'name' => 'episodes_to_exhibitions',
|
|
|
@@ -50,6 +57,36 @@ function all_connection_types() {
|
|
50
|
57
|
'reciprocal' => true,
|
|
51
|
58
|
'admin_box' => $admin_box
|
|
52
|
59
|
]);
|
|
|
60
|
+ p2p_register_connection_type([
|
|
|
61
|
+ 'name' => 'episodes_to_posts',
|
|
|
62
|
+ 'to' => 'episode',
|
|
|
63
|
+ 'from' => 'post',
|
|
|
64
|
+ 'reciprocal' => true,
|
|
|
65
|
+ 'admin_box' => $admin_box
|
|
|
66
|
+ ]);
|
|
|
67
|
+
|
|
|
68
|
+ p2p_register_connection_type([
|
|
|
69
|
+ 'name' => 'events_to_exhibitions',
|
|
|
70
|
+ 'to' => 'event',
|
|
|
71
|
+ 'from' => 'exhibition',
|
|
|
72
|
+ 'reciprocal' => true,
|
|
|
73
|
+ 'admin_box' => $admin_box
|
|
|
74
|
+ ]);
|
|
|
75
|
+ p2p_register_connection_type([
|
|
|
76
|
+ 'name' => 'events_to_posts',
|
|
|
77
|
+ 'to' => 'event',
|
|
|
78
|
+ 'from' => 'post',
|
|
|
79
|
+ 'reciprocal' => true,
|
|
|
80
|
+ 'admin_box' => $admin_box
|
|
|
81
|
+ ]);
|
|
|
82
|
+
|
|
|
83
|
+ p2p_register_connection_type([
|
|
|
84
|
+ 'name' => 'exhibitions_to_posts',
|
|
|
85
|
+ 'to' => 'exhibition',
|
|
|
86
|
+ 'from' => 'post',
|
|
|
87
|
+ 'reciprocal' => true,
|
|
|
88
|
+ 'admin_box' => $admin_box
|
|
|
89
|
+ ]);
|
|
53
|
90
|
}
|
|
54
|
91
|
add_action( 'p2p_init', 'all_connection_types' );
|
|
55
|
92
|
|