eo_get_venue
since 1.0.0
eo_get_venue( $event_id = '' )
Returns the ID of the venue of an event.
Can be used inside the loop to output the venue id of the current event by not passing an ID.
Otherwise it returns the venue ID of the passed event ID.
Examples
This function can be used inside the Loop to return the venue ID of the current event
$current_events_venue_id = eo_get_venue();
To obtain the venue ID of event 23:
$venue_id = eo_get_venue(23);
Parameters
Return value
int
|
The corresponding venue (event-venue term) ID
|
Changelog