scribu/wp-lib-posts-to-posts — pull request #1 by philipjohn (2014-08-20 10:18:09+00:00)
Title: Introduce p2p_get_connection_types_for_post()

Given that `connected_type` is required and 3rd-party plugins/themes won't always know of connection types, this function provides developers with a method of retrieving the connection types associated to a single post.

Usage as follows;
```
ID );

// Find connected pages
$connected = new WP_Query( array(
'connected_type' => $connected_types,
'connected_items' => get_queried_object(),
'nopaging' => true,
) );
```