cnp / wp-p2p-connections
Registers Posts-to-Posts connection. Requires Posts 2 Posts plugin.
dev-master
2015-11-23 21:29 UTC
Requires
- php: >=5.3.3
This package is auto-updated.
Last update: 2024-10-15 03:04:17 UTC
README
Registers Posts-to-Posts connection. Requires Posts 2 Posts plugin.
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.