cnp / wp-p2p-connections
Registers Posts-to-Posts connection. Requires Posts 2 Posts plugin.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/cnp/wp-p2p-connections
Requires
- php: >=5.3.3
 
This package is auto-updated.
Last update: 2025-10-15 04:57:02 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.