Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!function_exists('p2p_register_connection_type'))
- return;
- p2p_register_connection_type(array(
- 'name' => 'posts_to_athletes',
- 'to' => 'post',
- 'from' => 'athletes'
- ));
- p2p_register_connection_type(array(
- 'name' => 'galleries_to_photos',
- 'to' => 'galleries',
- 'from' => 'photos'
- ));
- p2p_register_connection_type(array(
- 'name' => 'athletes_to_sports',
- 'to' => 'athletes',
- 'from' => 'sports'
- ));
- p2p_register_connection_type(array(
- 'name' => 'posts_to_sports',
- 'to' => 'post',
- 'from' => 'sports'
- ));
- p2p_register_connection_type(array(
- 'name' => 'photos_to_athletes',
- 'to' => 'photos',
- 'from' => 'athletes'
- ));
- p2p_register_connection_type(array(
- 'name' => 'videos_to_athletes',
- 'from' => 'videos',
- 'to' => 'athletes'
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement