Inconsistency in ORM interface
-
When using the newer ORM interface, it seems there’s an inconsistency between events and venues. If I compare the two calls:
$event_post = tribe_events()->where('ID', $event_id)->first();
$venue_post = tribe_venues()->where('ID', $location_id)->first();
both return WP_Post results, however $event_post holds all add’l TEC data such as start_date, end_date, duration, multiday, etc, whereas $venue_post only returns core wp post data and is missing for instance address, zip code, city, etc. I am, of course able to access venue meta data with
$venue_address = get_post_meta($location_id, '_VenueAddress', true);
Is this how this is supposed to work? I would expect this data to also be included in the WP_Post result for venue…
I am using TEC 6.9.0, WP 6.7.1, PHP 8.2.6
- You must be logged in to reply to this topic.