cnp/wp-p2p-connections

Registers Posts-to-Posts connection. Requires Posts 2 Posts plugin.

dev-master 2015-11-23 21:29 UTC

This package is auto-updated.

Last update: 2024-12-15 03:24:29 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.