|
|
@@ -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_shorts',
|
|
|
47
|
+ 'to' => 'artist',
|
|
|
48
|
+ 'from' => 'short',
|
|
|
49
|
+ 'reciprocal' => true,
|
|
|
50
|
+ 'admin_box' => $admin_box
|
|
|
51
|
+ ]);
|
|
45
|
52
|
p2p_register_connection_type([
|
|
46
|
53
|
'name' => 'artists_to_techniques',
|
|
47
|
54
|
'to' => 'artist',
|
|
|
@@ -71,6 +78,20 @@ function all_connection_types() {
|
|
71
|
78
|
'reciprocal' => true,
|
|
72
|
79
|
'admin_box' => $admin_box
|
|
73
|
80
|
]);
|
|
|
81
|
+ p2p_register_connection_type([
|
|
|
82
|
+ 'name' => 'episodes_to_shorts',
|
|
|
83
|
+ 'to' => 'episode',
|
|
|
84
|
+ 'from' => 'short',
|
|
|
85
|
+ 'reciprocal' => true,
|
|
|
86
|
+ 'admin_box' => $admin_box
|
|
|
87
|
+ ]);
|
|
|
88
|
+ p2p_register_connection_type([
|
|
|
89
|
+ 'name' => 'episodes_to_techniques',
|
|
|
90
|
+ 'to' => 'episode',
|
|
|
91
|
+ 'from' => 'technique',
|
|
|
92
|
+ 'reciprocal' => true,
|
|
|
93
|
+ 'admin_box' => $admin_box
|
|
|
94
|
+ ]);
|
|
74
|
95
|
|
|
75
|
96
|
p2p_register_connection_type([
|
|
76
|
97
|
'name' => 'events_to_exhibitions',
|
|
|
@@ -94,6 +115,14 @@ function all_connection_types() {
|
|
94
|
115
|
'reciprocal' => true,
|
|
95
|
116
|
'admin_box' => $admin_box
|
|
96
|
117
|
]);
|
|
|
118
|
+
|
|
|
119
|
+ p2p_register_connection_type([
|
|
|
120
|
+ 'name' => 'shorts_to_techniques',
|
|
|
121
|
+ 'to' => 'short',
|
|
|
122
|
+ 'from' => 'technique',
|
|
|
123
|
+ 'reciprocal' => true,
|
|
|
124
|
+ 'admin_box' => $admin_box
|
|
|
125
|
+ ]);
|
|
97
|
126
|
}
|
|
98
|
127
|
add_action( 'p2p_init', 'all_connection_types' );
|
|
99
|
128
|
|