Inpsyde\MultilingualPress\Relations\Post\RelationshipController::connect_existing_post PHP Method

connect_existing_post() private method

Connects the current post with an existing remote one.
private connect_existing_post ( ) : boolean
return boolean Whether or not the relationship was updated successfully.
    private function connect_existing_post()
    {
        $this->disconnect_post();
        return $this->content_relations->set_relation($this->context->source_site_id(), $this->context->remote_site_id(), $this->context->source_post_id(), $this->context->new_post_id(), 'post');
    }