tribe_update_event removes venue and organizer associations
-
I’m using tribe_update_event() to update an event’s URL and after calling it, any associated venues or organizers are lost on the event (though the URL is updated). It appears that since the array of meta fields that I pass in do not include the organizer or venue, they are removed from the event. When I delved into this, it appears that Linked_Posts::instance()->handle_submission is causing the problem, since within its child methods it discovers my meta array doesn’t include organizers or venues and then clears those linked posts out on the event I’m trying to update.
This is how I call tribe_update_event(). FWIW I think my issue began with the 4.2.x series of TEC; it was working fine with 4.1.x :
$record = array (
'EventURL' => array (
get_the_permalink ( $post->ID )
)
);
$rc = tribe_update_event ( $eventId, $record);
- The topic ‘tribe_update_event removes venue and organizer associations’ is closed to new replies.