eo_get_venue

Description

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.

Usage

     <?php eo_get_venue( $event_id ); ?>     

Parameters

  • event_id () – (optional|”)

Return Values

  • (int) – The corresponding venue (event-venue term) ID

Change Log

Since: 1.0

Location

This function can be found in event-organiser/includes/event-organiser-venue-functions.php (line: 19)

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);