Tell us what you are trying to do?
I need the id por news many yo many post that is created when relating two posts with the function: toolset_connect_posts.
I want to retrieve the id of the new post
Example
$resultado = toolset_connect_posts('solicitud-productor', $entry['7'], $entry['5']);
Function
/*conectar post solicitud productor*/
add_action( 'gform_after_submission_7', 'solicitud_productor', 10, 2 );
function solicitud_productor( $entry, $form ) {
$idrelation = $entry['7'] + $entry['5'];
$resultado = toolset_connect_posts('solicitud-productor', $entry['7'], $entry['5']);
// Modify post author
$my_post = array(
'ID' => $resultado[2],
'post_author' => $entry['8'] //user post id
);
// Update the post into the database and save new Activity post ID
wp_update_post( $my_post );
}