library wp-p2p-connections
Registers Posts-to-Posts connection. Requires Posts 2 Posts plugin.
cnp/wp-p2p-connections
Registers Posts-to-Posts connection. Requires Posts 2 Posts plugin.
- Monday, November 23, 2015
- by cnp
- Repository
- 3 Watchers
- 0 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
P2P Connections
Registers Posts-to-Posts connection. Requires Posts 2 Posts plugin., (*1)
Usage
$settings = array(
array(
'name' => 'posts_to_pages',
'from' => 'post',
'to' => 'page'
),
array(
'name' => 'posts_to_pages',
'from' => 'post',
'to' => 'page'
)
);
$ClientPostConnections = new ClientPostConnections( $settings );
Parameters
$settings
(required): Array of P2P connection settings. See https://github.com/scribu/wp-posts-to-posts/wiki/p2p_register_connection_type., (*2)